| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 playback_video.get()); | 231 playback_video.get()); |
| 232 | 232 |
| 233 webrtc::RtcEventLogNullImpl event_log; | 233 webrtc::RtcEventLogNullImpl event_log; |
| 234 std::unique_ptr<Call> call(Call::Create(Call::Config(&event_log))); | 234 std::unique_ptr<Call> call(Call::Create(Call::Config(&event_log))); |
| 235 | 235 |
| 236 test::NullTransport transport; | 236 test::NullTransport transport; |
| 237 VideoReceiveStream::Config receive_config(&transport); | 237 VideoReceiveStream::Config receive_config(&transport); |
| 238 receive_config.rtp.remote_ssrc = flags::Ssrc(); | 238 receive_config.rtp.remote_ssrc = flags::Ssrc(); |
| 239 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; | 239 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; |
| 240 receive_config.rtp.rtx_ssrc = flags::SsrcRtx(); | 240 receive_config.rtp.rtx_ssrc = flags::SsrcRtx(); |
| 241 receive_config.rtp.rtx_payload_types[flags::PayloadType()] = | 241 receive_config.rtp.rtx_associated_payload_types[flags::PayloadTypeRtx()] = |
| 242 flags::PayloadTypeRtx(); | 242 flags::PayloadType(); |
| 243 receive_config.rtp.ulpfec.ulpfec_payload_type = flags::FecPayloadType(); | 243 receive_config.rtp.ulpfec.ulpfec_payload_type = flags::FecPayloadType(); |
| 244 receive_config.rtp.ulpfec.red_payload_type = flags::RedPayloadType(); | 244 receive_config.rtp.ulpfec.red_payload_type = flags::RedPayloadType(); |
| 245 receive_config.rtp.nack.rtp_history_ms = 1000; | 245 receive_config.rtp.nack.rtp_history_ms = 1000; |
| 246 if (flags::TransmissionOffsetId() != -1) { | 246 if (flags::TransmissionOffsetId() != -1) { |
| 247 receive_config.rtp.extensions.push_back(RtpExtension( | 247 receive_config.rtp.extensions.push_back(RtpExtension( |
| 248 RtpExtension::kTimestampOffsetUri, flags::TransmissionOffsetId())); | 248 RtpExtension::kTimestampOffsetUri, flags::TransmissionOffsetId())); |
| 249 } | 249 } |
| 250 if (flags::AbsSendTimeId() != -1) { | 250 if (flags::AbsSendTimeId() != -1) { |
| 251 receive_config.rtp.extensions.push_back( | 251 receive_config.rtp.extensions.push_back( |
| 252 RtpExtension(RtpExtension::kAbsSendTimeUri, flags::AbsSendTimeId())); | 252 RtpExtension(RtpExtension::kAbsSendTimeUri, flags::AbsSendTimeId())); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 348 } |
| 349 } // namespace webrtc | 349 } // namespace webrtc |
| 350 | 350 |
| 351 int main(int argc, char* argv[]) { | 351 int main(int argc, char* argv[]) { |
| 352 ::testing::InitGoogleTest(&argc, argv); | 352 ::testing::InitGoogleTest(&argc, argv); |
| 353 google::ParseCommandLineFlags(&argc, &argv, true); | 353 google::ParseCommandLineFlags(&argc, &argv, true); |
| 354 | 354 |
| 355 webrtc::test::RunTest(webrtc::RtpReplay); | 355 webrtc::test::RunTest(webrtc::RtpReplay); |
| 356 return 0; | 356 return 0; |
| 357 } | 357 } |
| OLD | NEW |