mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
双向会话时,确保收发ssrc一致
This commit is contained in:
parent
85fec6da0b
commit
f0e896a5e2
@ -1713,6 +1713,10 @@ RETRY:
|
|||||||
if (answer_media.direction == RtpDirection::invalid) {
|
if (answer_media.direction == RtpDirection::invalid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (answer_media.direction == RtpDirection::sendrecv) {
|
||||||
|
//如果是收发双向,那么我们拷贝offer sdp的ssrc,确保ssrc一致
|
||||||
|
answer_media.rtp_rtx_ssrc = offer_media.rtp_rtx_ssrc;
|
||||||
|
}
|
||||||
|
|
||||||
//添加媒体plan
|
//添加媒体plan
|
||||||
answer_media.plan.emplace_back(*selected_plan);
|
answer_media.plan.emplace_back(*selected_plan);
|
||||||
|
Loading…
Reference in New Issue
Block a user