提交 ed8906a9 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Consumer: don't route RTP if paused.

上级 fcd0d8c8
# TODO in mediasoup v2 (server-side) # TODO in mediasoup v2 (server-side)
* If a Consumer is paused it should not receive RTP!!!! So `Consumer.SendRtpPacket()` should check `this->paused` (and `this->sourcePaused`?).
- Done, but we must also check whether the RTCP reports/stats we are generating are ok when paused and later resumed.
* When a Peer disconnect, others receive `peerClosed` and later `consumerClosed` for each Consumer associated to the closed Peer, so the client side complains ("peer not found"). We should avoid sending `consumerClosed` if its Peer left. * When a Peer disconnect, others receive `peerClosed` and later `consumerClosed` for each Consumer associated to the closed Peer, so the client side complains ("peer not found"). We should avoid sending `consumerClosed` if its Peer left.
* Revisar que si un Producer JS empieza pausado, esté tb pausado en el worker y en el Consumer JS asociado. Y que si un Consumer JS se habilita pausado, que se entere tb el Consumer del worker. * Revisar que si un Producer JS empieza pausado, esté tb pausado en el worker y en el Consumer JS asociado. Y que si un Consumer JS se habilita pausado, que se entere tb el Consumer del worker.
......
...@@ -156,7 +156,10 @@ namespace RTC ...@@ -156,7 +156,10 @@ namespace RTC
{ {
MS_TRACE(); MS_TRACE();
// TODO: Must refactor for simulcast. // If paused don't forward RTP.
if (this->paused || this->sourcePaused)
return;
// Ignore the packet if the SSRC is not the single one in the sender // Ignore the packet if the SSRC is not the single one in the sender
// RTP parameters. // RTP parameters.
if (packet->GetSsrc() != this->rtpParameters.encodings[0].ssrc) if (packet->GetSsrc() != this->rtpParameters.encodings[0].ssrc)
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论