mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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 &&
|
if (configure.direction != RtpDirection::recvonly &&
|
||||||
configure.direction != RtpDirection::sendrecv) {
|
configure.direction != RtpDirection::sendrecv) {
|
||||||
//我们不支持接收
|
//我们不支持接收
|
||||||
continue;
|
answer_media.direction = RtpDirection::inactive;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
answer_media.direction = RtpDirection::recvonly;
|
answer_media.direction = RtpDirection::recvonly;
|
||||||
break;
|
break;
|
||||||
@ -1645,7 +1646,8 @@ RETRY:
|
|||||||
if (configure.direction != RtpDirection::sendonly &&
|
if (configure.direction != RtpDirection::sendonly &&
|
||||||
configure.direction != RtpDirection::sendrecv) {
|
configure.direction != RtpDirection::sendrecv) {
|
||||||
//我们不支持发送
|
//我们不支持发送
|
||||||
continue;
|
answer_media.direction = RtpDirection::inactive;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
answer_media.direction = RtpDirection::sendonly;
|
answer_media.direction = RtpDirection::sendonly;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user