OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 enable ? kRtxRetransmitted | kRtxRedundantPayloads : kRtxOff; | 743 enable ? kRtxRetransmitted | kRtxRedundantPayloads : kRtxOff; |
744 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) | 744 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) |
745 rtp_rtcp->SetRtxSendStatus(rtx_settings); | 745 rtp_rtcp->SetRtxSendStatus(rtx_settings); |
746 } | 746 } |
747 | 747 |
748 void ViEChannel::SetRtxReceivePayloadType(int payload_type, | 748 void ViEChannel::SetRtxReceivePayloadType(int payload_type, |
749 int associated_payload_type) { | 749 int associated_payload_type) { |
750 vie_receiver_.SetRtxPayloadType(payload_type, associated_payload_type); | 750 vie_receiver_.SetRtxPayloadType(payload_type, associated_payload_type); |
751 } | 751 } |
752 | 752 |
| 753 void ViEChannel::SetUseRtxPayloadMappingOnRestore(bool val) { |
| 754 vie_receiver_.SetUseRtxPayloadMappingOnRestore(val); |
| 755 } |
| 756 |
753 void ViEChannel::SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state) { | 757 void ViEChannel::SetRtpStateForSsrc(uint32_t ssrc, const RtpState& rtp_state) { |
754 RTC_DCHECK(!rtp_rtcp_modules_[0]->Sending()); | 758 RTC_DCHECK(!rtp_rtcp_modules_[0]->Sending()); |
755 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { | 759 for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) { |
756 if (rtp_rtcp->SetRtpStateForSsrc(ssrc, rtp_state)) | 760 if (rtp_rtcp->SetRtpStateForSsrc(ssrc, rtp_state)) |
757 return; | 761 return; |
758 } | 762 } |
759 } | 763 } |
760 | 764 |
761 RtpState ViEChannel::GetRtpStateForSsrc(uint32_t ssrc) { | 765 RtpState ViEChannel::GetRtpStateForSsrc(uint32_t ssrc) { |
762 RTC_DCHECK(!rtp_rtcp_modules_[0]->Sending()); | 766 RTC_DCHECK(!rtp_rtcp_modules_[0]->Sending()); |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 CriticalSectionScoped cs(crit_.get()); | 1249 CriticalSectionScoped cs(crit_.get()); |
1246 receive_stats_callback_ = receive_statistics_proxy; | 1250 receive_stats_callback_ = receive_statistics_proxy; |
1247 } | 1251 } |
1248 | 1252 |
1249 void ViEChannel::SetIncomingVideoStream( | 1253 void ViEChannel::SetIncomingVideoStream( |
1250 IncomingVideoStream* incoming_video_stream) { | 1254 IncomingVideoStream* incoming_video_stream) { |
1251 CriticalSectionScoped cs(crit_.get()); | 1255 CriticalSectionScoped cs(crit_.get()); |
1252 incoming_video_stream_ = incoming_video_stream; | 1256 incoming_video_stream_ = incoming_video_stream; |
1253 } | 1257 } |
1254 } // namespace webrtc | 1258 } // namespace webrtc |
OLD | NEW |