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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 std::unique_ptr<Call> call(Call::Create(Call::Config())); | 215 std::unique_ptr<Call> call(Call::Create(Call::Config())); |
216 | 216 |
217 test::NullTransport transport; | 217 test::NullTransport transport; |
218 VideoReceiveStream::Config receive_config(&transport); | 218 VideoReceiveStream::Config receive_config(&transport); |
219 receive_config.rtp.remote_ssrc = flags::Ssrc(); | 219 receive_config.rtp.remote_ssrc = flags::Ssrc(); |
220 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; | 220 receive_config.rtp.local_ssrc = kReceiverLocalSsrc; |
221 receive_config.rtp.fec.ulpfec_payload_type = flags::FecPayloadType(); | 221 receive_config.rtp.fec.ulpfec_payload_type = flags::FecPayloadType(); |
222 receive_config.rtp.fec.red_payload_type = flags::RedPayloadType(); | 222 receive_config.rtp.fec.red_payload_type = flags::RedPayloadType(); |
223 receive_config.rtp.nack.rtp_history_ms = 1000; | 223 receive_config.rtp.nack.rtp_history_ms = 1000; |
224 if (flags::TransmissionOffsetId() != -1) { | 224 if (flags::TransmissionOffsetId() != -1) { |
225 receive_config.rtp.extensions.push_back( | 225 receive_config.rtp.extensions.push_back(RtpExtension( |
226 RtpExtension(RtpExtension::kTOffset, flags::TransmissionOffsetId())); | 226 RtpExtension::kTimestampOffsetUri, flags::TransmissionOffsetId())); |
227 } | 227 } |
228 if (flags::AbsSendTimeId() != -1) { | 228 if (flags::AbsSendTimeId() != -1) { |
229 receive_config.rtp.extensions.push_back( | 229 receive_config.rtp.extensions.push_back( |
230 RtpExtension(RtpExtension::kAbsSendTime, flags::AbsSendTimeId())); | 230 RtpExtension(RtpExtension::kAbsSendTimeUri, flags::AbsSendTimeId())); |
231 } | 231 } |
232 receive_config.renderer = &file_passthrough; | 232 receive_config.renderer = &file_passthrough; |
233 | 233 |
234 VideoSendStream::Config::EncoderSettings encoder_settings; | 234 VideoSendStream::Config::EncoderSettings encoder_settings; |
235 encoder_settings.payload_name = flags::Codec(); | 235 encoder_settings.payload_name = flags::Codec(); |
236 encoder_settings.payload_type = flags::PayloadType(); | 236 encoder_settings.payload_type = flags::PayloadType(); |
237 VideoReceiveStream::Decoder decoder; | 237 VideoReceiveStream::Decoder decoder; |
238 std::unique_ptr<DecoderBitstreamFileWriter> bitstream_writer; | 238 std::unique_ptr<DecoderBitstreamFileWriter> bitstream_writer; |
239 if (!flags::DecoderBitstreamFilename().empty()) { | 239 if (!flags::DecoderBitstreamFilename().empty()) { |
240 bitstream_writer.reset(new DecoderBitstreamFileWriter( | 240 bitstream_writer.reset(new DecoderBitstreamFileWriter( |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } | 319 } |
320 } // namespace webrtc | 320 } // namespace webrtc |
321 | 321 |
322 int main(int argc, char* argv[]) { | 322 int main(int argc, char* argv[]) { |
323 ::testing::InitGoogleTest(&argc, argv); | 323 ::testing::InitGoogleTest(&argc, argv); |
324 google::ParseCommandLineFlags(&argc, &argv, true); | 324 google::ParseCommandLineFlags(&argc, &argv, true); |
325 | 325 |
326 webrtc::test::RunTest(webrtc::RtpReplay); | 326 webrtc::test::RunTest(webrtc::RtpReplay); |
327 return 0; | 327 return 0; |
328 } | 328 } |
OLD | NEW |