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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 webrtc::RtcEventLogNullImpl event_log; | 208 webrtc::RtcEventLogNullImpl event_log; |
209 std::unique_ptr<Call> call(Call::Create(Call::Config(&event_log))); | 209 std::unique_ptr<Call> call(Call::Create(Call::Config(&event_log))); |
210 | 210 |
211 test::NullTransport transport; | 211 test::NullTransport transport; |
212 VideoReceiveStream::Config receive_config(&transport); | 212 VideoReceiveStream::Config receive_config(&transport); |
213 receive_config.rtp.remote_ssrc = flags::Ssrc(); | 213 receive_config.rtp.remote_ssrc = flags::Ssrc(); |
214 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; | 214 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; |
215 receive_config.rtp.rtx_ssrc = flags::SsrcRtx(); | 215 receive_config.rtp.rtx_ssrc = flags::SsrcRtx(); |
216 receive_config.rtp.rtx_associated_payload_types[flags::PayloadTypeRtx()] = | 216 receive_config.rtp.rtx_associated_payload_types[flags::PayloadTypeRtx()] = |
217 flags::PayloadType(); | 217 flags::PayloadType(); |
218 receive_config.rtp.ulpfec.ulpfec_payload_type = flags::FecPayloadType(); | 218 receive_config.rtp.ulpfec_payload_type = flags::FecPayloadType(); |
219 receive_config.rtp.ulpfec.red_payload_type = flags::RedPayloadType(); | 219 receive_config.rtp.red_payload_type = flags::RedPayloadType(); |
220 receive_config.rtp.nack.rtp_history_ms = 1000; | 220 receive_config.rtp.nack.rtp_history_ms = 1000; |
221 if (flags::TransmissionOffsetId() != -1) { | 221 if (flags::TransmissionOffsetId() != -1) { |
222 receive_config.rtp.extensions.push_back(RtpExtension( | 222 receive_config.rtp.extensions.push_back(RtpExtension( |
223 RtpExtension::kTimestampOffsetUri, flags::TransmissionOffsetId())); | 223 RtpExtension::kTimestampOffsetUri, flags::TransmissionOffsetId())); |
224 } | 224 } |
225 if (flags::AbsSendTimeId() != -1) { | 225 if (flags::AbsSendTimeId() != -1) { |
226 receive_config.rtp.extensions.push_back( | 226 receive_config.rtp.extensions.push_back( |
227 RtpExtension(RtpExtension::kAbsSendTimeUri, flags::AbsSendTimeId())); | 227 RtpExtension(RtpExtension::kAbsSendTimeUri, flags::AbsSendTimeId())); |
228 } | 228 } |
229 receive_config.renderer = &file_passthrough; | 229 receive_config.renderer = &file_passthrough; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 RTC_CHECK(ValidateOptionalPayloadType(webrtc::flags::FLAG_red_payload_type)); | 340 RTC_CHECK(ValidateOptionalPayloadType(webrtc::flags::FLAG_red_payload_type)); |
341 RTC_CHECK(ValidateOptionalPayloadType(webrtc::flags::FLAG_fec_payload_type)); | 341 RTC_CHECK(ValidateOptionalPayloadType(webrtc::flags::FLAG_fec_payload_type)); |
342 RTC_CHECK(ValidateRtpHeaderExtensionId(webrtc::flags::FLAG_abs_send_time_id)); | 342 RTC_CHECK(ValidateRtpHeaderExtensionId(webrtc::flags::FLAG_abs_send_time_id)); |
343 RTC_CHECK(ValidateRtpHeaderExtensionId( | 343 RTC_CHECK(ValidateRtpHeaderExtensionId( |
344 webrtc::flags::FLAG_transmission_offset_id)); | 344 webrtc::flags::FLAG_transmission_offset_id)); |
345 RTC_CHECK(ValidateInputFilenameNotEmpty(webrtc::flags::FLAG_input_file)); | 345 RTC_CHECK(ValidateInputFilenameNotEmpty(webrtc::flags::FLAG_input_file)); |
346 | 346 |
347 webrtc::test::RunTest(webrtc::RtpReplay); | 347 webrtc::test::RunTest(webrtc::RtpReplay); |
348 return 0; | 348 return 0; |
349 } | 349 } |
OLD | NEW |