mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
优化webrtc sdp处理相关代码
This commit is contained in:
parent
62543202a5
commit
03dfcbad36
@ -1498,14 +1498,9 @@ void RtcConfigure::enableTWCC(bool enable, TrackType type){
|
|||||||
video.enableTWCC(enable);
|
video.enableTWCC(enable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TrackApplication: {
|
|
||||||
application.enableTWCC(enable);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: {
|
default: {
|
||||||
audio.enableTWCC(enable);
|
audio.enableTWCC(enable);
|
||||||
video.enableTWCC(enable);
|
video.enableTWCC(enable);
|
||||||
application.enableTWCC(enable);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1521,14 +1516,9 @@ void RtcConfigure::enableREMB(bool enable, TrackType type){
|
|||||||
video.enableREMB(enable);
|
video.enableREMB(enable);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TrackApplication: {
|
|
||||||
application.enableREMB(enable);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default: {
|
default: {
|
||||||
audio.enableREMB(enable);
|
audio.enableREMB(enable);
|
||||||
video.enableREMB(enable);
|
video.enableREMB(enable);
|
||||||
application.enableREMB(enable);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1583,11 +1573,11 @@ void RtcConfigure::matchMedia(const shared_ptr<RtcSession> &ret, TrackType type,
|
|||||||
|
|
||||||
RETRY:
|
RETRY:
|
||||||
|
|
||||||
for (auto &codec : configure.preferred_codec) {
|
|
||||||
for (auto &offer_media : medias) {
|
for (auto &offer_media : medias) {
|
||||||
if (offer_media.type != type) {
|
if (offer_media.type != type) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
for (auto &codec : configure.preferred_codec) {
|
||||||
if (offer_media.ice_lite && configure.ice_lite) {
|
if (offer_media.ice_lite && configure.ice_lite) {
|
||||||
WarnL << "answer sdp配置为ice_lite模式,与offer sdp中的ice_lite模式冲突";
|
WarnL << "answer sdp配置为ice_lite模式,与offer sdp中的ice_lite模式冲突";
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user