Skip to content

Commit

Permalink
SimpleConsumer: notify OnConsumerNeedZeroBitrate on paused
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Nov 24, 2019
1 parent 92af4cc commit 1320f94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/src/RTC/SimpleConsumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ namespace RTC
MS_TRACE();

this->rtpStream->Pause();

if (this->externallyManagedBitrate && this->kind == RTC::Media::Kind::VIDEO)
this->listener->OnConsumerNeedZeroBitrate(this);
}

void SimpleConsumer::UserOnResumed()
Expand Down

0 comments on commit 1320f94

Please sign in to comment.