| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // cannot do that until we're able to move Channel ownership into the | 90 // cannot do that until we're able to move Channel ownership into the |
| 91 // Audio{Send,Receive}Streams. The best we can do is check that we're not | 91 // Audio{Send,Receive}Streams. The best we can do is check that we're not |
| 92 // trying to use two different factories using the different interfaces. | 92 // trying to use two different factories using the different interfaces. |
| 93 RTC_CHECK(config.decoder_factory); | 93 RTC_CHECK(config.decoder_factory); |
| 94 RTC_CHECK_EQ(config.decoder_factory, | 94 RTC_CHECK_EQ(config.decoder_factory, |
| 95 channel_proxy_->GetAudioDecoderFactory()); | 95 channel_proxy_->GetAudioDecoderFactory()); |
| 96 | 96 |
| 97 channel_proxy_->RegisterExternalTransport(config.rtcp_send_transport); | 97 channel_proxy_->RegisterExternalTransport(config.rtcp_send_transport); |
| 98 channel_proxy_->SetReceiveCodecs(config.decoder_map); | 98 channel_proxy_->SetReceiveCodecs(config.decoder_map); |
| 99 | 99 |
| 100 for (const auto& extension : config.rtp.extensions) { | |
| 101 if (extension.uri == RtpExtension::kAudioLevelUri) { | |
| 102 channel_proxy_->SetReceiveAudioLevelIndicationStatus(true, extension.id); | |
| 103 } else if (extension.uri == RtpExtension::kTransportSequenceNumberUri) { | |
| 104 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id); | |
| 105 } else { | |
| 106 RTC_NOTREACHED() << "Unsupported RTP extension."; | |
| 107 } | |
| 108 } | |
| 109 // Configure bandwidth estimation. | 100 // Configure bandwidth estimation. |
| 110 channel_proxy_->RegisterReceiverCongestionControlObjects(packet_router); | 101 channel_proxy_->RegisterReceiverCongestionControlObjects(packet_router); |
| 111 | 102 |
| 112 // Register with transport. | 103 // Register with transport. |
| 113 rtp_stream_receiver_ = | 104 rtp_stream_receiver_ = |
| 114 receiver_controller->CreateReceiver(config_.rtp.remote_ssrc, | 105 receiver_controller->CreateReceiver(config_.rtp.remote_ssrc, |
| 115 channel_proxy_.get()); | 106 channel_proxy_.get()); |
| 116 } | 107 } |
| 117 | 108 |
| 118 AudioReceiveStream::~AudioReceiveStream() { | 109 AudioReceiveStream::~AudioReceiveStream() { |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { | 335 int AudioReceiveStream::SetVoiceEnginePlayout(bool playout) { |
| 345 ScopedVoEInterface<VoEBase> base(voice_engine()); | 336 ScopedVoEInterface<VoEBase> base(voice_engine()); |
| 346 if (playout) { | 337 if (playout) { |
| 347 return base->StartPlayout(config_.voe_channel_id); | 338 return base->StartPlayout(config_.voe_channel_id); |
| 348 } else { | 339 } else { |
| 349 return base->StopPlayout(config_.voe_channel_id); | 340 return base->StopPlayout(config_.voe_channel_id); |
| 350 } | 341 } |
| 351 } | 342 } |
| 352 } // namespace internal | 343 } // namespace internal |
| 353 } // namespace webrtc | 344 } // namespace webrtc |
| OLD | NEW |