mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
不支持的rtp方向,answer sdp设置为inactive
This commit is contained in:
parent
a91f4d29f2
commit
7a02d2c8d6
@ -1636,7 +1636,8 @@ RETRY:
|
||||
if (configure.direction != RtpDirection::recvonly &&
|
||||
configure.direction != RtpDirection::sendrecv) {
|
||||
//我们不支持接收
|
||||
continue;
|
||||
answer_media.direction = RtpDirection::inactive;
|
||||
break;
|
||||
}
|
||||
answer_media.direction = RtpDirection::recvonly;
|
||||
break;
|
||||
@ -1645,7 +1646,8 @@ RETRY:
|
||||
if (configure.direction != RtpDirection::sendonly &&
|
||||
configure.direction != RtpDirection::sendrecv) {
|
||||
//我们不支持发送
|
||||
continue;
|
||||
answer_media.direction = RtpDirection::inactive;
|
||||
break;
|
||||
}
|
||||
answer_media.direction = RtpDirection::sendonly;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user