From 4a62314be97966b462a9137e034bd030e8d87376 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 2 Apr 2021 18:36:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/WebRtcTransport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 43fbebd9..827aa6a9 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -232,8 +232,8 @@ void WebRtcTransportImp::onCheckSdp(SdpType type, RtcSession &sdp) const{ m.rtp_ssrc.ssrc = _src->getSsrc(m.type); m.rtx_ssrc.ssrc = 2 + m.rtp_ssrc.ssrc; - m.rtp_ssrc.cname = "zlmediakit rtc"; - m.rtx_ssrc.cname = "zlmediakit rtc"; + m.rtp_ssrc.cname = "zlmediakit-rtc"; + m.rtx_ssrc.cname = "zlmediakit-rtc"; } } @@ -250,12 +250,12 @@ void WebRtcTransportImp::onRtcConfigure(RtcConfigure &configure) const { switch (m.type) { case TrackVideo: { configure.video.enable = true; - configure.video.preferred_codec = {getCodecId(m.plan[0].codec)}; + configure.video.preferred_codec.insert(configure.video.preferred_codec.begin(), getCodecId(m.plan[0].codec)); break; } case TrackAudio: { configure.audio.enable = true; - configure.audio.preferred_codec = {getCodecId(m.plan[0].codec)}; + configure.audio.preferred_codec.insert(configure.audio.preferred_codec.begin(),getCodecId(m.plan[0].codec)); break; } default: