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 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2153 } | 2153 } |
2154 // RTX | 2154 // RTX |
2155 if (use_rtx_) { | 2155 if (use_rtx_) { |
2156 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); | 2156 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); |
2157 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; | 2157 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
2158 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = | 2158 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = |
2159 kSendRtxSsrcs[0]; | 2159 kSendRtxSsrcs[0]; |
2160 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = | 2160 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = |
2161 kSendRtxPayloadType; | 2161 kSendRtxPayloadType; |
2162 } | 2162 } |
2163 // RTT needed for RemoteNtpTimeEstimator for the receive stream. | |
2164 (*receive_configs)[0].rtp.rtcp_xr.receiver_reference_time_report = true; | |
2165 encoder_config->content_type = | 2163 encoder_config->content_type = |
2166 screenshare_ ? VideoEncoderConfig::ContentType::kScreen | 2164 screenshare_ ? VideoEncoderConfig::ContentType::kScreen |
2167 : VideoEncoderConfig::ContentType::kRealtimeVideo; | 2165 : VideoEncoderConfig::ContentType::kRealtimeVideo; |
2168 } | 2166 } |
2169 | 2167 |
2170 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { | 2168 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { |
2171 sender_call_ = sender_call; | 2169 sender_call_ = sender_call; |
2172 receiver_call_ = receiver_call; | 2170 receiver_call_ = receiver_call; |
2173 } | 2171 } |
2174 | 2172 |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3608 private: | 3606 private: |
3609 bool video_observed_; | 3607 bool video_observed_; |
3610 bool audio_observed_; | 3608 bool audio_observed_; |
3611 SequenceNumberUnwrapper unwrapper_; | 3609 SequenceNumberUnwrapper unwrapper_; |
3612 std::set<int64_t> received_packet_ids_; | 3610 std::set<int64_t> received_packet_ids_; |
3613 } test; | 3611 } test; |
3614 | 3612 |
3615 RunBaseTest(&test); | 3613 RunBaseTest(&test); |
3616 } | 3614 } |
3617 } // namespace webrtc | 3615 } // namespace webrtc |
OLD | NEW |