webrtc sdp msid不存在时,不添加

This commit is contained in:
xiongziliang
2022-03-12 19:26:08 +08:00
parent 76372cd34b
commit b8277974aa
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,9 @@ void WebRtcEchoTest::onCheckSdp(SdpType type, RtcSession &sdp) {
if (type == SdpType::answer) {
for (auto &m : sdp.media) {
for (auto &ssrc : m.rtp_rtx_ssrc) {
ssrc.msid = "zlmediakit msid";
if (!ssrc.msid.empty()) {
ssrc.msid = "zlmediakit msid";
}
}
}
}