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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // Logs an incoming or outgoing RTCP packet. | 71 // Logs an incoming or outgoing RTCP packet. |
72 virtual void LogRtcpPacket(bool incoming, | 72 virtual void LogRtcpPacket(bool incoming, |
73 MediaType media_type, | 73 MediaType media_type, |
74 const uint8_t* packet, | 74 const uint8_t* packet, |
75 size_t length) = 0; | 75 size_t length) = 0; |
76 | 76 |
77 // Logs an audio playout event | 77 // Logs an audio playout event |
78 virtual void LogAudioPlayout(uint32_t ssrc) = 0; | 78 virtual void LogAudioPlayout(uint32_t ssrc) = 0; |
79 | 79 |
| 80 // Logs a bitrate update from the bandwidth estimator based on packet loss. |
| 81 virtual void LogBwePacketLossEvent(int32_t bitrate, |
| 82 uint8_t fraction_loss, |
| 83 int32_t total_packets) = 0; |
| 84 |
80 // Reads an RtcEventLog file and returns true when reading was successful. | 85 // Reads an RtcEventLog file and returns true when reading was successful. |
81 // The result is stored in the given EventStream object. | 86 // The result is stored in the given EventStream object. |
82 static bool ParseRtcEventLog(const std::string& file_name, | 87 static bool ParseRtcEventLog(const std::string& file_name, |
83 rtclog::EventStream* result); | 88 rtclog::EventStream* result); |
84 }; | 89 }; |
85 | 90 |
86 } // namespace webrtc | 91 } // namespace webrtc |
87 | 92 |
88 #endif // WEBRTC_CALL_RTC_EVENT_LOG_H_ | 93 #endif // WEBRTC_CALL_RTC_EVENT_LOG_H_ |
OLD | NEW |