OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 } | 2132 } |
2133 // RTX | 2133 // RTX |
2134 if (use_rtx_) { | 2134 if (use_rtx_) { |
2135 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); | 2135 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); |
2136 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; | 2136 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
2137 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = | 2137 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = |
2138 kSendRtxSsrcs[0]; | 2138 kSendRtxSsrcs[0]; |
2139 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = | 2139 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = |
2140 kSendRtxPayloadType; | 2140 kSendRtxPayloadType; |
2141 } | 2141 } |
| 2142 // RTT needed for RemoteNtpTimeEstimator for the receive stream. |
| 2143 (*receive_configs)[0].rtp.rtcp_xr.receiver_reference_time_report = true; |
2142 encoder_config->content_type = | 2144 encoder_config->content_type = |
2143 screenshare_ ? VideoEncoderConfig::ContentType::kScreen | 2145 screenshare_ ? VideoEncoderConfig::ContentType::kScreen |
2144 : VideoEncoderConfig::ContentType::kRealtimeVideo; | 2146 : VideoEncoderConfig::ContentType::kRealtimeVideo; |
2145 } | 2147 } |
2146 | 2148 |
2147 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { | 2149 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { |
2148 sender_call_ = sender_call; | 2150 sender_call_ = sender_call; |
2149 receiver_call_ = receiver_call; | 2151 receiver_call_ = receiver_call; |
2150 } | 2152 } |
2151 | 2153 |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3519 private: | 3521 private: |
3520 bool video_observed_; | 3522 bool video_observed_; |
3521 bool audio_observed_; | 3523 bool audio_observed_; |
3522 SequenceNumberUnwrapper unwrapper_; | 3524 SequenceNumberUnwrapper unwrapper_; |
3523 std::set<int64_t> received_packet_ids_; | 3525 std::set<int64_t> received_packet_ids_; |
3524 } test; | 3526 } test; |
3525 | 3527 |
3526 RunBaseTest(&test); | 3528 RunBaseTest(&test); |
3527 } | 3529 } |
3528 } // namespace webrtc | 3530 } // namespace webrtc |
OLD | NEW |