Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 1844773002: Update the call when the network route changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Merge with head Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.h ('k') | webrtc/pc/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698