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 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2046 } | 2046 } |
2047 // RTX | 2047 // RTX |
2048 if (use_rtx_) { | 2048 if (use_rtx_) { |
2049 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); | 2049 send_config->rtp.rtx.ssrcs.push_back(kSendRtxSsrcs[0]); |
2050 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; | 2050 send_config->rtp.rtx.payload_type = kSendRtxPayloadType; |
2051 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = | 2051 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].ssrc = |
2052 kSendRtxSsrcs[0]; | 2052 kSendRtxSsrcs[0]; |
2053 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = | 2053 (*receive_configs)[0].rtp.rtx[kFakeVideoSendPayloadType].payload_type = |
2054 kSendRtxPayloadType; | 2054 kSendRtxPayloadType; |
2055 } | 2055 } |
| 2056 // RTT needed for RemoteNtpTimeEstimator for the receive stream. |
| 2057 (*receive_configs)[0].rtp.rtcp_xr.receiver_reference_time_report = true; |
2056 encoder_config->content_type = | 2058 encoder_config->content_type = |
2057 screenshare_ ? VideoEncoderConfig::ContentType::kScreen | 2059 screenshare_ ? VideoEncoderConfig::ContentType::kScreen |
2058 : VideoEncoderConfig::ContentType::kRealtimeVideo; | 2060 : VideoEncoderConfig::ContentType::kRealtimeVideo; |
2059 } | 2061 } |
2060 | 2062 |
2061 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { | 2063 void OnCallsCreated(Call* sender_call, Call* receiver_call) override { |
2062 sender_call_ = sender_call; | 2064 sender_call_ = sender_call; |
2063 receiver_call_ = receiver_call; | 2065 receiver_call_ = receiver_call; |
2064 } | 2066 } |
2065 | 2067 |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3501 private: | 3503 private: |
3502 bool video_observed_; | 3504 bool video_observed_; |
3503 bool audio_observed_; | 3505 bool audio_observed_; |
3504 SequenceNumberUnwrapper unwrapper_; | 3506 SequenceNumberUnwrapper unwrapper_; |
3505 std::set<int64_t> received_packet_ids_; | 3507 std::set<int64_t> received_packet_ids_; |
3506 } test; | 3508 } test; |
3507 | 3509 |
3508 RunBaseTest(&test); | 3510 RunBaseTest(&test); |
3509 } | 3511 } |
3510 } // namespace webrtc | 3512 } // namespace webrtc |
OLD | NEW |