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

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: Remove the change in congestion controller. 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
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 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2324 // will filter out RR internally. 2324 // will filter out RR internally.
2325 for (const auto& ch : send_streams_) { 2325 for (const auto& ch : send_streams_) {
2326 engine()->voe()->network()->ReceivedRTCPPacket( 2326 engine()->voe()->network()->ReceivedRTCPPacket(
2327 ch.second->channel(), packet->cdata(), packet->size()); 2327 ch.second->channel(), packet->cdata(), packet->size());
2328 } 2328 }
2329 } 2329 }
2330 2330
2331 void WebRtcVoiceMediaChannel::OnNetworkRouteChanged( 2331 void WebRtcVoiceMediaChannel::OnNetworkRouteChanged(
2332 const std::string& transport_name, 2332 const std::string& transport_name,
2333 const NetworkRoute& network_route) { 2333 const NetworkRoute& network_route) {
2334 // TODO(honghaiz): uncomment this once the function in call is implemented. 2334 call_->OnNetworkRouteChanged(transport_name, network_route);
2335 // call_->OnNetworkRouteChanged(transport_name, network_route);
2336 } 2335 }
2337 2336
2338 bool WebRtcVoiceMediaChannel::MuteStream(uint32_t ssrc, bool muted) { 2337 bool WebRtcVoiceMediaChannel::MuteStream(uint32_t ssrc, bool muted) {
2339 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 2338 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
2340 int channel = GetSendChannelId(ssrc); 2339 int channel = GetSendChannelId(ssrc);
2341 if (channel == -1) { 2340 if (channel == -1) {
2342 LOG(LS_WARNING) << "The specified ssrc " << ssrc << " is not in use."; 2341 LOG(LS_WARNING) << "The specified ssrc " << ssrc << " is not in use.";
2343 return false; 2342 return false;
2344 } 2343 }
2345 if (engine()->voe()->volume()->SetInputMute(channel, muted) == -1) { 2344 if (engine()->voe()->volume()->SetInputMute(channel, muted) == -1) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 } 2550 }
2552 } else { 2551 } else {
2553 LOG(LS_INFO) << "Stopping playout for channel #" << channel; 2552 LOG(LS_INFO) << "Stopping playout for channel #" << channel;
2554 engine()->voe()->base()->StopPlayout(channel); 2553 engine()->voe()->base()->StopPlayout(channel);
2555 } 2554 }
2556 return true; 2555 return true;
2557 } 2556 }
2558 } // namespace cricket 2557 } // namespace cricket
2559 2558
2560 #endif // HAVE_WEBRTC_VOICE 2559 #endif // HAVE_WEBRTC_VOICE
OLDNEW
« webrtc/call/call.cc ('K') | « webrtc/media/engine/webrtcvideoengine2.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698