Add RequestKeyFrame with Pli to RtcpTransceiver

Add support for reduced size mode.

Bug: webrtc:8239
Change-Id: I1d646f0d7848af6632c9204ce5b96ae24cfc0ad3
Reviewed-on: https://webrtc-review.googlesource.com/23681
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20812}
This commit is contained in:
Danil Chapovalov
2017-11-21 11:08:53 +01:00
committed by Commit Bot
parent de939432dc
commit a7e418cd5f
7 changed files with 156 additions and 22 deletions

View File

@ -48,6 +48,11 @@ bool RtcpTransceiverConfig::Validate() const {
RTC_LOG(LS_ERROR) << debug_id << "outgoing transport must be set";
return false;
}
if (initial_report_delay_ms < 0) {
RTC_LOG(LS_ERROR) << debug_id << "delay " << initial_report_delay_ms
<< "ms before first report shouldn't be negative.";
return false;
}
if (report_period_ms <= 0) {
RTC_LOG(LS_ERROR) << debug_id << "period " << report_period_ms
<< "ms between reports should be positive.";
@ -58,6 +63,10 @@ bool RtcpTransceiverConfig::Validate() const {
<< "missing task queue for periodic compound packets";
return false;
}
if (rtcp_mode != RtcpMode::kCompound && rtcp_mode != RtcpMode::kReducedSize) {
RTC_LOG(LS_ERROR) << debug_id << "unsupported rtcp mode";
return false;
}
// TODO(danilchap): Remove or update the warning when RtcpTransceiver supports
// send-only sessions.
if (receive_statistics == nullptr)