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

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

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Removed changes in call dir and leave that in a separate CL. 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/webrtcvideoengine2.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 webrtc_packet_time); 1403 webrtc_packet_time);
1404 } 1404 }
1405 1405
1406 void WebRtcVideoChannel2::OnReadyToSend(bool ready) { 1406 void WebRtcVideoChannel2::OnReadyToSend(bool ready) {
1407 LOG(LS_VERBOSE) << "OnReadyToSend: " << (ready ? "Ready." : "Not ready."); 1407 LOG(LS_VERBOSE) << "OnReadyToSend: " << (ready ? "Ready." : "Not ready.");
1408 call_->SignalChannelNetworkState( 1408 call_->SignalChannelNetworkState(
1409 webrtc::MediaType::VIDEO, 1409 webrtc::MediaType::VIDEO,
1410 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown); 1410 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown);
1411 } 1411 }
1412 1412
1413 void WebRtcVideoChannel2::OnNetworkRouteChanged(
1414 const std::string& transport_name,
1415 const NetworkRoute& network_route) {
1416 // TODO(honghaiz): uncomment this once the function in call is implemented.
1417 // call_->OnNetworkRouteChanged(transport_name, network_route);
1418 }
1419
1413 bool WebRtcVideoChannel2::MuteStream(uint32_t ssrc, bool mute) { 1420 bool WebRtcVideoChannel2::MuteStream(uint32_t ssrc, bool mute) {
1414 LOG(LS_VERBOSE) << "MuteStream: " << ssrc << " -> " 1421 LOG(LS_VERBOSE) << "MuteStream: " << ssrc << " -> "
1415 << (mute ? "mute" : "unmute"); 1422 << (mute ? "mute" : "unmute");
1416 RTC_DCHECK(ssrc != 0); 1423 RTC_DCHECK(ssrc != 0);
1417 rtc::CritScope stream_lock(&stream_crit_); 1424 rtc::CritScope stream_lock(&stream_crit_);
1418 const auto& kv = send_streams_.find(ssrc); 1425 const auto& kv = send_streams_.find(ssrc);
1419 if (kv == send_streams_.end()) { 1426 if (kv == send_streams_.end()) {
1420 LOG(LS_ERROR) << "No sending stream on ssrc " << ssrc; 1427 LOG(LS_ERROR) << "No sending stream on ssrc " << ssrc;
1421 return false; 1428 return false;
1422 } 1429 }
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2586 rtx_mapping[video_codecs[i].codec.id] != 2593 rtx_mapping[video_codecs[i].codec.id] !=
2587 fec_settings.red_payload_type) { 2594 fec_settings.red_payload_type) {
2588 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2595 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2589 } 2596 }
2590 } 2597 }
2591 2598
2592 return video_codecs; 2599 return video_codecs;
2593 } 2600 }
2594 2601
2595 } // namespace cricket 2602 } // namespace cricket
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2.h ('k') | webrtc/media/engine/webrtcvoiceengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698