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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 // The result is stored in the given EventStream object. | 102 // The result is stored in the given EventStream object. |
103 // The order of the events in the EventStream is implementation defined. | 103 // The order of the events in the EventStream is implementation defined. |
104 // The current implementation writes a LOG_START event, then the old | 104 // The current implementation writes a LOG_START event, then the old |
105 // configurations, then the remaining events in timestamp order and finally | 105 // configurations, then the remaining events in timestamp order and finally |
106 // a LOG_END event. However, this might change without further notice. | 106 // a LOG_END event. However, this might change without further notice. |
107 // TODO(terelius): Change result type to a vector? | 107 // TODO(terelius): Change result type to a vector? |
108 static bool ParseRtcEventLog(const std::string& file_name, | 108 static bool ParseRtcEventLog(const std::string& file_name, |
109 rtclog::EventStream* result); | 109 rtclog::EventStream* result); |
110 }; | 110 }; |
111 | 111 |
112 class NullRtcEventLog : public RtcEventLog { | |
terelius
2016/07/28 13:22:35
There is a null-implementation in rtc_event_log.cc
stefan-webrtc
2016/07/28 13:47:23
Done.
| |
113 public: | |
114 ~NullRtcEventLog() override {} | |
115 bool StartLogging(const std::string& file_name, | |
116 int64_t max_size_bytes) override { | |
117 return true; | |
118 } | |
119 bool StartLogging(rtc::PlatformFile platform_file, | |
120 int64_t max_size_bytes) override { | |
121 return true; | |
122 } | |
123 void StopLogging() override{}; | |
124 void LogVideoReceiveStreamConfig( | |
125 const webrtc::VideoReceiveStream::Config& config) override {} | |
126 void LogVideoSendStreamConfig( | |
127 const webrtc::VideoSendStream::Config& config) override {} | |
128 void LogRtpHeader(PacketDirection direction, | |
129 MediaType media_type, | |
130 const uint8_t* header, | |
131 size_t packet_length) override {} | |
132 void LogRtcpPacket(PacketDirection direction, | |
133 MediaType media_type, | |
134 const uint8_t* packet, | |
135 size_t length) override {} | |
136 void LogAudioPlayout(uint32_t ssrc) override {} | |
137 void LogBwePacketLossEvent(int32_t bitrate, | |
138 uint8_t fraction_loss, | |
139 int32_t total_packets) override {} | |
140 }; | |
141 | |
112 } // namespace webrtc | 142 } // namespace webrtc |
113 | 143 |
114 #endif // WEBRTC_CALL_RTC_EVENT_LOG_H_ | 144 #endif // WEBRTC_CALL_RTC_EVENT_LOG_H_ |
OLD | NEW |