mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
默认不添加无效的codec plan
This commit is contained in:
parent
e84d16213c
commit
16fa359cc5
@ -1601,12 +1601,14 @@ RETRY:
|
||||
}
|
||||
}
|
||||
|
||||
//其他plan放在后面
|
||||
#if 0
|
||||
//todo 此处为添加无效的plan,webrtc sdp通过调节plan pt顺序选择匹配的codec,意味着后面的codec其实放在sdp中是无意义的
|
||||
for (auto &plan : offer_media.plan) {
|
||||
if (pt_selected.find(plan.pt) == pt_selected.end()) {
|
||||
answer_media.plan.emplace_back(plan);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
ret->media.emplace_back(answer_media);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user