mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
不支持的rtp方向,answer sdp设置为inactive
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user