mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
rtc answer sdp存在多个ssrc时,确保最后一个不为空
This commit is contained in:
parent
043c1bab72
commit
aaecd74080
@ -532,15 +532,16 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) {
|
|||||||
}
|
}
|
||||||
//添加answer sdp的ssrc信息
|
//添加answer sdp的ssrc信息
|
||||||
m.rtp_rtx_ssrc.emplace_back();
|
m.rtp_rtx_ssrc.emplace_back();
|
||||||
m.rtp_rtx_ssrc[0].ssrc = _play_src->getSsrc(m.type);
|
auto &ssrc = m.rtp_rtx_ssrc.back();
|
||||||
m.rtp_rtx_ssrc[0].cname = RTP_CNAME;
|
ssrc.ssrc = _play_src->getSsrc(m.type);
|
||||||
m.rtp_rtx_ssrc[0].label = RTP_LABEL;
|
ssrc.cname = RTP_CNAME;
|
||||||
m.rtp_rtx_ssrc[0].mslabel = RTP_MSLABEL;
|
ssrc.label = RTP_LABEL;
|
||||||
m.rtp_rtx_ssrc[0].msid = RTP_MSID;
|
ssrc.mslabel = RTP_MSLABEL;
|
||||||
|
ssrc.msid = RTP_MSID;
|
||||||
|
|
||||||
if (m.getRelatedRtxPlan(m.plan[0].pt)) {
|
if (m.getRelatedRtxPlan(m.plan[0].pt)) {
|
||||||
//rtx ssrc
|
//rtx ssrc
|
||||||
m.rtp_rtx_ssrc[0].rtx_ssrc = m.rtp_rtx_ssrc[0].ssrc + RTX_SSRC_OFFSET;
|
ssrc.rtx_ssrc = ssrc.ssrc + RTX_SSRC_OFFSET;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user