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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void StopLogging() = 0; | 47 virtual void StopLogging() = 0; |
48 | 48 |
49 // Logs configuration information for webrtc::VideoReceiveStream | 49 // Logs configuration information for webrtc::VideoReceiveStream |
50 virtual void LogVideoReceiveStreamConfig( | 50 virtual void LogVideoReceiveStreamConfig( |
51 const webrtc::VideoReceiveStream::Config& config) = 0; | 51 const webrtc::VideoReceiveStream::Config& config) = 0; |
52 | 52 |
53 // Logs configuration information for webrtc::VideoSendStream | 53 // Logs configuration information for webrtc::VideoSendStream |
54 virtual void LogVideoSendStreamConfig( | 54 virtual void LogVideoSendStreamConfig( |
55 const webrtc::VideoSendStream::Config& config) = 0; | 55 const webrtc::VideoSendStream::Config& config) = 0; |
56 | 56 |
57 // Logs the header of an incoming or outgoing RTP packet. | 57 // Logs the header of an incoming or outgoing RTP packet. packet_length |
| 58 // is the total length of the packet, including both header and payload. |
58 virtual void LogRtpHeader(bool incoming, | 59 virtual void LogRtpHeader(bool incoming, |
59 MediaType media_type, | 60 MediaType media_type, |
60 const uint8_t* header, | 61 const uint8_t* header, |
61 size_t header_length, | 62 size_t packet_length) = 0; |
62 size_t total_length) = 0; | |
63 | 63 |
64 // Logs an incoming or outgoing RTCP packet. | 64 // Logs an incoming or outgoing RTCP packet. |
65 virtual void LogRtcpPacket(bool incoming, | 65 virtual void LogRtcpPacket(bool incoming, |
66 MediaType media_type, | 66 MediaType media_type, |
67 const uint8_t* packet, | 67 const uint8_t* packet, |
68 size_t length) = 0; | 68 size_t length) = 0; |
69 | 69 |
70 // Logs a debug event. | 70 // Logs a debug event. |
71 virtual void LogDebugEvent(DebugEvent event_type) = 0; | 71 virtual void LogDebugEvent(DebugEvent event_type) = 0; |
72 | 72 |
73 // Reads an RtcEventLog file and returns true when reading was successful. | 73 // Reads an RtcEventLog file and returns true when reading was successful. |
74 // The result is stored in the given EventStream object. | 74 // The result is stored in the given EventStream object. |
75 static bool ParseRtcEventLog(const std::string& file_name, | 75 static bool ParseRtcEventLog(const std::string& file_name, |
76 rtclog::EventStream* result); | 76 rtclog::EventStream* result); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace webrtc | 79 } // namespace webrtc |
80 | 80 |
81 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_ | 81 #endif // WEBRTC_VIDEO_RTC_EVENT_LOG_H_ |
OLD | NEW |