Commit e4cdc5f2 by ziyue

webrtc extmap方向匹配失败时,不添加进sdp

parent b2bec619
...@@ -1749,8 +1749,14 @@ RETRY: ...@@ -1749,8 +1749,14 @@ RETRY:
for (auto &ext : offer_media.extmap) { for (auto &ext : offer_media.extmap) {
auto it = configure.extmap.find(RtpExt::getExtType(ext.ext)); auto it = configure.extmap.find(RtpExt::getExtType(ext.ext));
if (it != configure.extmap.end()) { if (it != configure.extmap.end()) {
auto new_dir = matchDirection(ext.direction, it->second);
switch (new_dir) {
case RtpDirection::invalid:
case RtpDirection::inactive: continue;
default: break;
}
answer_media.extmap.emplace_back(ext); answer_media.extmap.emplace_back(ext);
answer_media.extmap.back().direction = matchDirection(ext.direction, it->second); answer_media.extmap.back().direction = new_dir;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论