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

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

Issue 2437503004: Set actual transport overhead in rtp_rtcp (Closed)
Patch Set: Add unittest for changing transport overhead. 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
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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 webrtc::MediaType::VIDEO, 1471 webrtc::MediaType::VIDEO,
1472 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown); 1472 ready ? webrtc::kNetworkUp : webrtc::kNetworkDown);
1473 } 1473 }
1474 1474
1475 void WebRtcVideoChannel2::OnNetworkRouteChanged( 1475 void WebRtcVideoChannel2::OnNetworkRouteChanged(
1476 const std::string& transport_name, 1476 const std::string& transport_name,
1477 const rtc::NetworkRoute& network_route) { 1477 const rtc::NetworkRoute& network_route) {
1478 call_->OnNetworkRouteChanged(transport_name, network_route); 1478 call_->OnNetworkRouteChanged(transport_name, network_route);
1479 } 1479 }
1480 1480
1481 void WebRtcVideoChannel2::OnTransportOverheadChange(
1482 int transport_overhead_per_packet) {
1483 call_->OnTransportOverheadChange(webrtc::MediaType::VIDEO,
1484 transport_overhead_per_packet);
1485 }
1486
1481 void WebRtcVideoChannel2::SetInterface(NetworkInterface* iface) { 1487 void WebRtcVideoChannel2::SetInterface(NetworkInterface* iface) {
1482 MediaChannel::SetInterface(iface); 1488 MediaChannel::SetInterface(iface);
1483 // Set the RTP recv/send buffer to a bigger size 1489 // Set the RTP recv/send buffer to a bigger size
1484 MediaChannel::SetOption(NetworkInterface::ST_RTP, 1490 MediaChannel::SetOption(NetworkInterface::ST_RTP,
1485 rtc::Socket::OPT_RCVBUF, 1491 rtc::Socket::OPT_RCVBUF,
1486 kVideoRtpBufferSize); 1492 kVideoRtpBufferSize);
1487 1493
1488 // Speculative change to increase the outbound socket buffer size. 1494 // Speculative change to increase the outbound socket buffer size.
1489 // In b/15152257, we are seeing a significant number of packets discarded 1495 // In b/15152257, we are seeing a significant number of packets discarded
1490 // due to lack of socket buffer space, although it's not yet clear what the 1496 // due to lack of socket buffer space, although it's not yet clear what the
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 rtx_mapping[video_codecs[i].codec.id] != 2565 rtx_mapping[video_codecs[i].codec.id] !=
2560 ulpfec_config.red_payload_type) { 2566 ulpfec_config.red_payload_type) {
2561 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; 2567 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id];
2562 } 2568 }
2563 } 2569 }
2564 2570
2565 return video_codecs; 2571 return video_codecs;
2566 } 2572 }
2567 2573
2568 } // namespace cricket 2574 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698