OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 312 |
313 RTPSender rtp_sender(false, // bool audio | 313 RTPSender rtp_sender(false, // bool audio |
314 clock, // Clock* clock | 314 clock, // Clock* clock |
315 nullptr, // Transport* | 315 nullptr, // Transport* |
316 nullptr, // PacedSender* | 316 nullptr, // PacedSender* |
317 nullptr, // PacketRouter* | 317 nullptr, // PacketRouter* |
318 nullptr, // SendTimeObserver* | 318 nullptr, // SendTimeObserver* |
319 nullptr, // BitrateStatisticsObserver* | 319 nullptr, // BitrateStatisticsObserver* |
320 nullptr, // FrameCountObserver* | 320 nullptr, // FrameCountObserver* |
321 nullptr, // SendSideDelayObserver* | 321 nullptr, // SendSideDelayObserver* |
322 nullptr); // RtcEventLog* | 322 nullptr, // RtcEventLog* |
| 323 nullptr); // SendPacketObserver* |
323 | 324 |
324 std::vector<uint32_t> csrcs; | 325 std::vector<uint32_t> csrcs; |
325 for (unsigned i = 0; i < csrcs_count; i++) { | 326 for (unsigned i = 0; i < csrcs_count; i++) { |
326 csrcs.push_back(prng->Rand<uint32_t>()); | 327 csrcs.push_back(prng->Rand<uint32_t>()); |
327 } | 328 } |
328 rtp_sender.SetCsrcs(csrcs); | 329 rtp_sender.SetCsrcs(csrcs); |
329 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); | 330 rtp_sender.SetSSRC(prng->Rand<uint32_t>()); |
330 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); | 331 rtp_sender.SetStartTimestamp(prng->Rand<uint32_t>(), true); |
331 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); | 332 rtp_sender.SetSequenceNumber(prng->Rand<uint16_t>()); |
332 | 333 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 rtcp_packet.data(), rtcp_packet.size()); | 699 rtcp_packet.data(), rtcp_packet.size()); |
699 | 700 |
700 VerifyLogEndEvent(parsed_stream.stream(3)); | 701 VerifyLogEndEvent(parsed_stream.stream(3)); |
701 | 702 |
702 // Clean up temporary file - can be pretty slow. | 703 // Clean up temporary file - can be pretty slow. |
703 remove(temp_filename.c_str()); | 704 remove(temp_filename.c_str()); |
704 } | 705 } |
705 } // namespace webrtc | 706 } // namespace webrtc |
706 | 707 |
707 #endif // ENABLE_RTC_EVENT_LOG | 708 #endif // ENABLE_RTC_EVENT_LOG |
OLD | NEW |