OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |