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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Rename SignalTransportOverheadChanged to UpdateTransportOverhead. Created 4 years, 1 month 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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 webrtc::MediaType::VIDEO, 1475 webrtc::MediaType::VIDEO,
1476 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown); 1476 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown);
1477 } 1477 }
1478 1478
1479 void WebRtcVideoChannel2::OnNetworkRouteChanged( 1479 void WebRtcVideoChannel2::OnNetworkRouteChanged(
1480 const std::string& transport_name, 1480 const std::string& transport_name,
1481 const rtc::NetworkRoute& network_route) { 1481 const rtc::NetworkRoute& network_route) {
1482 call_->OnNetworkRouteChanged(transport_name, network_route); 1482 call_->OnNetworkRouteChanged(transport_name, network_route);
1483 } 1483 }
1484 1484
1485 void WebRtcVideoChannel2::OnTransportOverheadChanged(
1486 int transport_overhead_per_packet) {
1487 call_->OnTransportOverheadChanged(webrtc::MediaType::VIDEO,
1488 transport_overhead_per_packet);
1489 }
1490
1485 void WebRtcVideoChannel2::SetInterface(NetworkInterface* iface) { 1491 void WebRtcVideoChannel2::SetInterface(NetworkInterface* iface) {
1486 MediaChannel::SetInterface(iface); 1492 MediaChannel::SetInterface(iface);
1487 // Set the RTP recv/send buffer to a bigger size 1493 // Set the RTP recv/send buffer to a bigger size
1488 MediaChannel::SetOption(NetworkInterface::ST_RTP, 1494 MediaChannel::SetOption(NetworkInterface::ST_RTP,
1489 rtc::Socket::OPT_RCVBUF, 1495 rtc::Socket::OPT_RCVBUF,
1490 kVideoRtpBufferSize); 1496 kVideoRtpBufferSize);
1491 1497
1492 // Speculative change to increase the outbound socket buffer size. 1498 // Speculative change to increase the outbound socket buffer size.
1493 // In b/15152257, we are seeing a significant number of packets discarded 1499 // In b/15152257, we are seeing a significant number of packets discarded
1494 // due to lack of socket buffer space, although it's not yet clear what the 1500 // due to lack of socket buffer space, although it's not yet clear what the
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 rtx_mapping[video_codecs[i].codec.id] != 2574 rtx_mapping[video_codecs[i].codec.id] !=
2569 ulpfec_config.red_payload_type) { 2575 ulpfec_config.red_payload_type) {
2570 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2576 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2571 } 2577 }
2572 } 2578 }
2573 2579
2574 return video_codecs; 2580 return video_codecs;
2575 } 2581 }
2576 2582
2577 } // namespace cricket 2583 } // 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