mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-30 16:27:36 +08:00
Fixing the problem of WebRTC handshake failure caused by unsupported RTP extensions (#3486)
This commit is contained in:
parent
e4de454d5d
commit
2d66dd7cb3
@ -204,7 +204,8 @@ static unordered_map<string/*ext*/, RtpExtType/*id*/> s_url_to_type = {RTP_EXT_M
|
||||
RtpExtType RtpExt::getExtType(const string &url) {
|
||||
auto it = s_url_to_type.find(url);
|
||||
if (it == s_url_to_type.end()) {
|
||||
throw std::invalid_argument(string("未识别的rtp ext url类型:") + url);
|
||||
WarnL << "unknown rtp ext url type: " << url;
|
||||
return RtpExtType::padding;
|
||||
}
|
||||
return it->second;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user