mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 02:34:26 +08:00
过滤掉不支持的webrtc rtp ext,提高webrtc转发兼容性
在测试obs simulcast推流时,发现chrome无法正常播放, 分析rtp ext扩展,发现是rtp mid ext未过滤导致, zlmediakit在回复answer sdp时,已申明不支持mid扩展, 但是obs并未理会还是发送mid扩展。 根据answer sdp过滤rtp ext可兼容此问题。
This commit is contained in:
parent
2378617dd8
commit
a7d95461ee
@ -515,7 +515,7 @@ void WebRtcTransportImp::onStartWebRTC() {
|
||||
_pt_to_track.emplace(track->plan_rtx->pt, std::unique_ptr<WrappedMediaTrack>(new WrappedRtxTrack(track)));
|
||||
}
|
||||
// 记录rtp ext类型与id的关系,方便接收或发送rtp时修改rtp ext id
|
||||
track->rtp_ext_ctx = std::make_shared<RtpExtContext>(*m_offer);
|
||||
track->rtp_ext_ctx = std::make_shared<RtpExtContext>(m_answer);
|
||||
weak_ptr<MediaTrack> weak_track = track;
|
||||
track->rtp_ext_ctx->setOnGetRtp([this, weak_track](uint8_t pt, uint32_t ssrc, const string &rid) {
|
||||
// ssrc --> MediaTrack
|
||||
|
Loading…
Reference in New Issue
Block a user