Allow to turn RtcpTransciever on and off at runtime.

Bug: webrtc:8239
Change-Id: I8678d1ee9cd0da194a1243d40b508bb62cb3f257
Reviewed-on: https://webrtc-review.googlesource.com/60180
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22311}
This commit is contained in:
Danil Chapovalov
2018-03-06 14:33:20 +01:00
committed by Commit Bot
parent 70473fcac4
commit e3927c5885
6 changed files with 110 additions and 2 deletions

View File

@ -43,6 +43,8 @@ class RtcpTransceiverImpl {
void RemoveMediaReceiverRtcpObserver(uint32_t remote_ssrc,
MediaReceiverRtcpObserver* observer);
void SetReadyToSend(bool ready);
void ReceivePacket(rtc::ArrayView<const uint8_t> packet, int64_t now_us);
void SendCompoundPacket();
@ -88,6 +90,7 @@ class RtcpTransceiverImpl {
const RtcpTransceiverConfig config_;
bool ready_to_send_;
rtc::Optional<rtcp::Remb> remb_;
// TODO(danilchap): Remove entries from remote_senders_ that are no longer
// needed.