Commit 4a62314b by ziyue

完善

parent 9a2f2cbf
...@@ -232,8 +232,8 @@ void WebRtcTransportImp::onCheckSdp(SdpType type, RtcSession &sdp) const{ ...@@ -232,8 +232,8 @@ void WebRtcTransportImp::onCheckSdp(SdpType type, RtcSession &sdp) const{
m.rtp_ssrc.ssrc = _src->getSsrc(m.type); m.rtp_ssrc.ssrc = _src->getSsrc(m.type);
m.rtx_ssrc.ssrc = 2 + m.rtp_ssrc.ssrc; m.rtx_ssrc.ssrc = 2 + m.rtp_ssrc.ssrc;
m.rtp_ssrc.cname = "zlmediakit rtc"; m.rtp_ssrc.cname = "zlmediakit-rtc";
m.rtx_ssrc.cname = "zlmediakit rtc"; m.rtx_ssrc.cname = "zlmediakit-rtc";
} }
} }
...@@ -250,12 +250,12 @@ void WebRtcTransportImp::onRtcConfigure(RtcConfigure &configure) const { ...@@ -250,12 +250,12 @@ void WebRtcTransportImp::onRtcConfigure(RtcConfigure &configure) const {
switch (m.type) { switch (m.type) {
case TrackVideo: { case TrackVideo: {
configure.video.enable = true; 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; break;
} }
case TrackAudio: { case TrackAudio: {
configure.audio.enable = true; 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; break;
} }
default: default:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论