Unverified 提交 21b1bf9b authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

SimulcastConsumer: Fix frozen video when syncing keyframe is discarded due to…

SimulcastConsumer: Fix frozen video when syncing keyframe is discarded due to too high RTP timestamp extra offset needed (#999)

- Fixes #990.
- Rationale here: https://github.com/versatica/mediasoup/issues/990#issuecomment-1409997273.
- Basically we should reset this->syncRequired` nor `this->spatialLayerToSync` when the keyframe that is supposed to switch to another spatial layer is discarded due to too high RTP timestamp extra offset needed.
上级 c882311f
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
### NEXT ### NEXT
* `SimulcastConsumer::GetDesiredBitrate()`: Choose the highest bitrate among all Producer streams ([PR #992](https://github.com/versatica/mediasoup/pull/992)). * `SimulcastConsumer::GetDesiredBitrate()`: Choose the highest bitrate among all Producer streams ([PR #992](https://github.com/versatica/mediasoup/pull/992)).
* `SimulcastConsumer`: Fix frozen video when syncing keyframe is discarded due to too high RTP timestamp extra offset needed ([PR #999](https://github.com/versatica/mediasoup/pull/999)).
* Update NPM deps. * Update NPM deps.
......
...@@ -809,6 +809,10 @@ namespace RTC ...@@ -809,6 +809,10 @@ namespace RTC
this->keyFrameForTsOffsetRequested = true; this->keyFrameForTsOffsetRequested = true;
// Reset flags since we are discarding this key frame.
this->syncRequired = false;
this->spatialLayerToSync = -1;
return; return;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论