Pass notifications of RTT, PLR and LossNotification RTCP through EncoderSimulcastProxy

LibvpxVp8Encoder is held by EncoderSimulcastProxy. Make EncoderSimulcastProxy
pass on notifications of RTT, PLR and LossNotification RTCP messages
onwards to the encoder it holds.

Bug: webrtc:10501
Change-Id: Id6c9a0a9fe09a0868e28c5d7ff94d4a71f3d6332
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132221
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27546}
This commit is contained in:
Elad Alon
2019-04-10 16:38:16 +02:00
committed by Commit Bot
parent b6ef99bb33
commit fb20afd38c
2 changed files with 16 additions and 0 deletions

View File

@ -61,6 +61,19 @@ int EncoderSimulcastProxy::SetRateAllocation(
return encoder_->SetRateAllocation(bitrate, new_framerate);
}
void EncoderSimulcastProxy::OnPacketLossRateUpdate(float packet_loss_rate) {
return encoder_->OnPacketLossRateUpdate(packet_loss_rate);
}
void EncoderSimulcastProxy::OnRttUpdate(int64_t rtt_ms) {
return encoder_->OnRttUpdate(rtt_ms);
}
void EncoderSimulcastProxy::OnLossNotification(
const LossNotification& loss_notification) {
encoder_->OnLossNotification(loss_notification);
}
VideoEncoder::EncoderInfo EncoderSimulcastProxy::GetEncoderInfo() const {
return encoder_->GetEncoderInfo();
}

View File

@ -50,6 +50,9 @@ class RTC_EXPORT EncoderSimulcastProxy : public VideoEncoder {
int RegisterEncodeCompleteCallback(EncodedImageCallback* callback) override;
int SetRateAllocation(const VideoBitrateAllocation& bitrate,
uint32_t new_framerate) override;
void OnPacketLossRateUpdate(float packet_loss_rate) override;
void OnRttUpdate(int64_t rtt_ms) override;
void OnLossNotification(const LossNotification& loss_notification) override;
EncoderInfo GetEncoderInfo() const override;
private: