OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 5 #ifndef MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
6 #define MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 6 #define MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 | 70 |
71 // Text stream playback has ended. | 71 // Text stream playback has ended. |
72 TEXT_ENDED, | 72 TEXT_ENDED, |
73 | 73 |
74 // The extents of the sliding buffer have changed. | 74 // The extents of the sliding buffer have changed. |
75 // params: "buffer_start": <first buffered byte>. | 75 // params: "buffer_start": <first buffered byte>. |
76 // "buffer_current": <current offset>. | 76 // "buffer_current": <current offset>. |
77 // "buffer_end": <last buffered byte>. | 77 // "buffer_end": <last buffered byte>. |
78 BUFFERED_EXTENTS_CHANGED, | 78 BUFFERED_EXTENTS_CHANGED, |
79 | 79 |
80 // Buffered audio splice frame statistics have changed. | |
81 // params: "audio_splice_count": <count of splice frames buffered> | |
82 // "audio_splice_degenerate_count": <count of degenerate splices> | |
83 // A degenerate splice is any splice that was prevented from | |
84 // generation due to exact buffer overlap, overlap of previous | |
85 // splice, overlap of preroll, or overlap duration below minimum | |
86 // threshold. | |
87 // "audio_splice_duration_average": <seconds> | |
88 // "audio_splice_duration_min": <seconds> | |
89 // "audio_splice_duration_max": <seconds> | |
90 BUFFERED_AUDIO_SPLICE_STATISTICS_CHANGED, | |
xhwang
2015/07/15 00:46:50
+dalecurtis
When I first looked at this list (Typ
| |
91 | |
80 // Error log reported by media code such as reasons of playback error. | 92 // Error log reported by media code such as reasons of playback error. |
81 MEDIA_ERROR_LOG_ENTRY, | 93 MEDIA_ERROR_LOG_ENTRY, |
82 // params: "error": Error string describing the error detected. | 94 // params: "error": Error string describing the error detected. |
83 | 95 |
84 // Informative log reported by media code. | 96 // Informative log reported by media code. |
85 MEDIA_INFO_LOG_ENTRY, | 97 MEDIA_INFO_LOG_ENTRY, |
86 // params: "info": String with details of an informative log entry. | 98 // params: "info": String with details of an informative log entry. |
87 | 99 |
88 // Debug log reported by media code. | 100 // Debug log reported by media code. |
89 MEDIA_DEBUG_LOG_ENTRY, | 101 MEDIA_DEBUG_LOG_ENTRY, |
90 // params: "debug": String with details of a debug log entry. | 102 // params: "debug": String with details of a debug log entry. |
91 | 103 |
92 // A property has changed without any special event occurring. | 104 // A property has changed without any special event occurring. |
93 PROPERTY_CHANGE, | 105 PROPERTY_CHANGE, |
94 | 106 |
95 TYPE_LAST = PROPERTY_CHANGE | 107 TYPE_LAST = PROPERTY_CHANGE |
96 }; | 108 }; |
97 | 109 |
98 int32 id; | 110 int32 id; |
99 Type type; | 111 Type type; |
100 base::DictionaryValue params; | 112 base::DictionaryValue params; |
101 base::TimeTicks time; | 113 base::TimeTicks time; |
102 }; | 114 }; |
103 | 115 |
104 } // namespace media | 116 } // namespace media |
105 | 117 |
106 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 118 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
OLD | NEW |