mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
webrtc codec类型不支持时,设置为inactive类型
This commit is contained in:
parent
a408197493
commit
8531b5e1cb
@ -1707,7 +1707,9 @@ RETRY:
|
||||
default: continue;
|
||||
}
|
||||
|
||||
answer_media.direction = matchDirection(offer_media.direction, configure.direction);
|
||||
//如果codec匹配失败,那么禁用该track
|
||||
answer_media.direction = check_codec ? matchDirection(offer_media.direction, configure.direction)
|
||||
: RtpDirection::inactive;
|
||||
if (answer_media.direction == RtpDirection::invalid) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user