rtc不支持的track,不设置group attribute

This commit is contained in:
Dw9 2023-08-25 18:22:31 +08:00
parent cbb95d2197
commit f9381a6fef
1 changed files with 4 additions and 1 deletions

View File

@ -1555,7 +1555,10 @@ shared_ptr<RtcSession> RtcConfigure::createAnswer(const RtcSession &offer) const
//设置音视频端口复用 //设置音视频端口复用
if (!offer.group.mids.empty()) { if (!offer.group.mids.empty()) {
for (auto &m : ret->media) { for (auto &m : ret->media) {
ret->group.mids.emplace_back(m.mid); //The remote end has rejected (port 0) the m-section, so it should not be putting its mid in the group attribute.
if(m.port) {
ret->group.mids.emplace_back(m.mid);
}
} }
} }
return ret; return ret;