| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 ~RtcEventLogImpl() override; | 58 ~RtcEventLogImpl() override; |
| 59 | 59 |
| 60 bool StartLogging(const std::string& file_name, | 60 bool StartLogging(const std::string& file_name, |
| 61 int64_t max_size_bytes) override; | 61 int64_t max_size_bytes) override; |
| 62 bool StartLogging(rtc::PlatformFile platform_file, | 62 bool StartLogging(rtc::PlatformFile platform_file, |
| 63 int64_t max_size_bytes) override; | 63 int64_t max_size_bytes) override; |
| 64 void StopLogging() override; | 64 void StopLogging() override; |
| 65 void LogVideoReceiveStreamConfig(const rtclog::StreamConfig& config) override; | 65 void LogVideoReceiveStreamConfig(const rtclog::StreamConfig& config) override; |
| 66 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override; | 66 void LogVideoSendStreamConfig(const rtclog::StreamConfig& config) override; |
| 67 void LogAudioReceiveStreamConfig(const rtclog::StreamConfig& config) override; | 67 void LogAudioReceiveStreamConfig(const rtclog::StreamConfig& config) override; |
| 68 void LogAudioSendStreamConfig(const AudioSendStream::Config& config) override; | 68 void LogAudioSendStreamConfig(const rtclog::StreamConfig& config) override; |
| 69 void LogRtpHeader(PacketDirection direction, | 69 void LogRtpHeader(PacketDirection direction, |
| 70 MediaType media_type, | 70 MediaType media_type, |
| 71 const uint8_t* header, | 71 const uint8_t* header, |
| 72 size_t packet_length) override; | 72 size_t packet_length) override; |
| 73 void LogRtpHeader(PacketDirection direction, | 73 void LogRtpHeader(PacketDirection direction, |
| 74 MediaType media_type, | 74 MediaType media_type, |
| 75 const uint8_t* header, | 75 const uint8_t* header, |
| 76 size_t packet_length, | 76 size_t packet_length, |
| 77 int probe_cluster_id) override; | 77 int probe_cluster_id) override; |
| 78 void LogRtcpPacket(PacketDirection direction, | 78 void LogRtcpPacket(PacketDirection direction, |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 for (const auto& e : config.rtp_extensions) { | 363 for (const auto& e : config.rtp_extensions) { |
| 364 rtclog::RtpHeaderExtension* extension = | 364 rtclog::RtpHeaderExtension* extension = |
| 365 receiver_config->add_header_extensions(); | 365 receiver_config->add_header_extensions(); |
| 366 extension->set_name(e.uri); | 366 extension->set_name(e.uri); |
| 367 extension->set_id(e.id); | 367 extension->set_id(e.id); |
| 368 } | 368 } |
| 369 StoreEvent(&event); | 369 StoreEvent(&event); |
| 370 } | 370 } |
| 371 | 371 |
| 372 void RtcEventLogImpl::LogAudioSendStreamConfig( | 372 void RtcEventLogImpl::LogAudioSendStreamConfig( |
| 373 const AudioSendStream::Config& config) { | 373 const rtclog::StreamConfig& config) { |
| 374 std::unique_ptr<rtclog::Event> event(new rtclog::Event()); | 374 std::unique_ptr<rtclog::Event> event(new rtclog::Event()); |
| 375 event->set_timestamp_us(rtc::TimeMicros()); | 375 event->set_timestamp_us(rtc::TimeMicros()); |
| 376 event->set_type(rtclog::Event::AUDIO_SENDER_CONFIG_EVENT); | 376 event->set_type(rtclog::Event::AUDIO_SENDER_CONFIG_EVENT); |
| 377 | 377 |
| 378 rtclog::AudioSendConfig* sender_config = event->mutable_audio_sender_config(); | 378 rtclog::AudioSendConfig* sender_config = event->mutable_audio_sender_config(); |
| 379 | 379 |
| 380 sender_config->set_ssrc(config.rtp.ssrc); | 380 sender_config->set_ssrc(config.local_ssrc); |
| 381 | 381 |
| 382 for (const auto& e : config.rtp.extensions) { | 382 for (const auto& e : config.rtp_extensions) { |
| 383 rtclog::RtpHeaderExtension* extension = | 383 rtclog::RtpHeaderExtension* extension = |
| 384 sender_config->add_header_extensions(); | 384 sender_config->add_header_extensions(); |
| 385 extension->set_name(e.uri); | 385 extension->set_name(e.uri); |
| 386 extension->set_id(e.id); | 386 extension->set_id(e.id); |
| 387 } | 387 } |
| 388 | 388 |
| 389 StoreEvent(&event); | 389 StoreEvent(&event); |
| 390 } | 390 } |
| 391 | 391 |
| 392 void RtcEventLogImpl::LogRtpHeader(PacketDirection direction, | 392 void RtcEventLogImpl::LogRtpHeader(PacketDirection direction, |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 #else | 621 #else |
| 622 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); | 622 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); |
| 623 #endif // ENABLE_RTC_EVENT_LOG | 623 #endif // ENABLE_RTC_EVENT_LOG |
| 624 } | 624 } |
| 625 | 625 |
| 626 std::unique_ptr<RtcEventLog> RtcEventLog::CreateNull() { | 626 std::unique_ptr<RtcEventLog> RtcEventLog::CreateNull() { |
| 627 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); | 627 return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); |
| 628 } | 628 } |
| 629 | 629 |
| 630 } // namespace webrtc | 630 } // namespace webrtc |
| OLD | NEW |