From 1e3959433522808f3390bc9748ae96af793906dc Mon Sep 17 00:00:00 2001 From: johzzy Date: Sun, 10 Mar 2024 10:34:03 -0300 Subject: [PATCH] fix for https://bugs.chromium.org/p/webrtc/issues/detail?id=15845 (#3360) --- webrtc/WebRtcTransport.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 14bcf19e..786e26c3 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -31,7 +31,6 @@ #define RTP_CNAME "zlmediakit-rtp" #define RTP_LABEL "zlmediakit-label" #define RTP_MSLABEL "zlmediakit-mslabel" -#define RTP_MSID RTP_MSLABEL " " RTP_LABEL using namespace std; @@ -707,9 +706,9 @@ void WebRtcTransportImp::onCheckAnswer(RtcSession &sdp) { // 发送的ssrc我们随便定义,因为在发送rtp时会修改为此值 ssrc.ssrc = m.type + RTP_SSRC_OFFSET; ssrc.cname = RTP_CNAME; - ssrc.label = RTP_LABEL; + ssrc.label = std::string(RTP_LABEL) + '-' + m.mid; ssrc.mslabel = RTP_MSLABEL; - ssrc.msid = RTP_MSID; + ssrc.msid = ssrc.mslabel + ' ' + ssrc.label; if (m.getRelatedRtxPlan(m.plan[0].pt)) { // rtx ssrc