mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
webrtc不支持的mline设置为inactive
This commit is contained in:
parent
4b694ccde8
commit
d62cdd81b8
@ -1406,7 +1406,6 @@ void RtcConfigure::RtcTrackConfigure::enableREMB(bool enable){
|
||||
}
|
||||
|
||||
void RtcConfigure::RtcTrackConfigure::setDefaultSetting(TrackType type){
|
||||
enable = true;
|
||||
rtcp_mux = true;
|
||||
rtcp_rsize = false;
|
||||
group_bundle = true;
|
||||
@ -1455,7 +1454,6 @@ void RtcConfigure::RtcTrackConfigure::setDefaultSetting(TrackType type){
|
||||
break;
|
||||
}
|
||||
case TrackApplication: {
|
||||
enable = false;
|
||||
break;
|
||||
}
|
||||
default: break;
|
||||
@ -1575,9 +1573,6 @@ shared_ptr<RtcSession> RtcConfigure::createAnswer(const RtcSession &offer){
|
||||
}
|
||||
|
||||
void RtcConfigure::matchMedia(shared_ptr<RtcSession> &ret, TrackType type, const vector<RtcMedia> &medias, const RtcTrackConfigure &configure){
|
||||
if (!configure.enable) {
|
||||
return;
|
||||
}
|
||||
bool check_profile = true;
|
||||
bool check_codec = true;
|
||||
|
||||
@ -1667,7 +1662,8 @@ RETRY:
|
||||
}
|
||||
case RtpDirection::sendrecv : {
|
||||
//对方支持发送接收,那么最终能力根据配置来决定
|
||||
answer_media.direction = configure.direction;
|
||||
answer_media.direction = (configure.direction == RtpDirection::invalid ? RtpDirection::inactive
|
||||
: configure.direction);
|
||||
break;
|
||||
}
|
||||
default: continue;
|
||||
|
@ -684,7 +684,6 @@ public:
|
||||
using Ptr = std::shared_ptr<RtcConfigure>;
|
||||
class RtcTrackConfigure {
|
||||
public:
|
||||
bool enable;
|
||||
bool rtcp_mux;
|
||||
bool rtcp_rsize;
|
||||
bool group_bundle;
|
||||
|
Loading…
Reference in New Issue
Block a user