OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2004 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 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2328 // channels. So all RTCP packets must be forwarded all send channels. VoE | 2328 // channels. So all RTCP packets must be forwarded all send channels. VoE |
2329 // will filter out RR internally. | 2329 // will filter out RR internally. |
2330 for (const auto& ch : send_streams_) { | 2330 for (const auto& ch : send_streams_) { |
2331 engine()->voe()->network()->ReceivedRTCPPacket( | 2331 engine()->voe()->network()->ReceivedRTCPPacket( |
2332 ch.second->channel(), packet->cdata(), packet->size()); | 2332 ch.second->channel(), packet->cdata(), packet->size()); |
2333 } | 2333 } |
2334 } | 2334 } |
2335 | 2335 |
2336 void WebRtcVoiceMediaChannel::OnNetworkRouteChanged( | 2336 void WebRtcVoiceMediaChannel::OnNetworkRouteChanged( |
2337 const std::string& transport_name, | 2337 const std::string& transport_name, |
2338 const NetworkRoute& network_route) { | 2338 const rtc::NetworkRoute& network_route) { |
2339 // TODO(honghaiz): uncomment this once the function in call is implemented. | 2339 call_->OnNetworkRouteChanged(transport_name, network_route); |
2340 // call_->OnNetworkRouteChanged(transport_name, network_route); | |
2341 } | 2340 } |
2342 | 2341 |
2343 bool WebRtcVoiceMediaChannel::MuteStream(uint32_t ssrc, bool muted) { | 2342 bool WebRtcVoiceMediaChannel::MuteStream(uint32_t ssrc, bool muted) { |
2344 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 2343 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
2345 int channel = GetSendChannelId(ssrc); | 2344 int channel = GetSendChannelId(ssrc); |
2346 if (channel == -1) { | 2345 if (channel == -1) { |
2347 LOG(LS_WARNING) << "The specified ssrc " << ssrc << " is not in use."; | 2346 LOG(LS_WARNING) << "The specified ssrc " << ssrc << " is not in use."; |
2348 return false; | 2347 return false; |
2349 } | 2348 } |
2350 if (engine()->voe()->volume()->SetInputMute(channel, muted) == -1) { | 2349 if (engine()->voe()->volume()->SetInputMute(channel, muted) == -1) { |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 } | 2563 } |
2565 } else { | 2564 } else { |
2566 LOG(LS_INFO) << "Stopping playout for channel #" << channel; | 2565 LOG(LS_INFO) << "Stopping playout for channel #" << channel; |
2567 engine()->voe()->base()->StopPlayout(channel); | 2566 engine()->voe()->base()->StopPlayout(channel); |
2568 } | 2567 } |
2569 return true; | 2568 return true; |
2570 } | 2569 } |
2571 } // namespace cricket | 2570 } // namespace cricket |
2572 | 2571 |
2573 #endif // HAVE_WEBRTC_VOICE | 2572 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |