OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 | 33 |
34 // A media player has been told to play or pause. | 34 // A media player has been told to play or pause. |
35 // params: none. | 35 // params: none. |
36 PLAY, | 36 PLAY, |
37 PAUSE, | 37 PAUSE, |
38 | 38 |
39 // The state of PipelineImpl has changed. | 39 // The state of PipelineImpl has changed. |
40 // params: "pipeline_state": <string name of the state>. | 40 // params: "pipeline_state": <string name of the state>. |
41 PIPELINE_STATE_CHANGED, | 41 PIPELINE_STATE_CHANGED, |
42 | 42 |
43 // An error has occurred in the pipeline. | |
44 // params: "pipeline_error": <string name of the error>. | |
45 PIPELINE_ERROR, | |
46 | |
47 // The size of the video has been determined. | |
48 // params: "width": <integral width of the video>. | |
49 // "height": <integral height of the video>. | |
50 VIDEO_SIZE_SET, | |
51 | |
52 // A property of the pipeline has been set by a filter. | |
53 // These take a single parameter based upon the name of the event and of | |
54 // the appropriate type. e.g. DURATION_SET: "duration" of type TimeDelta. | |
55 TIME_SET, | |
scherkus (not reviewing)
2011/08/10 23:14:42
a few these events fire like... A LOT (esp. time)
Scott Franklin
2011/08/11 21:29:14
The ones that get set a lot are time, buffered tim
scherkus (not reviewing)
2011/08/11 23:09:00
I was referring to the performance impact of const
Scott Franklin
2011/08/12 01:35:33
Ah. I did look into it a bit.
A system could exist
| |
56 DURATION_SET, | |
57 BUFFERED_TIME_SET, | |
58 TOTAL_BYTES_SET, | |
59 BUFFERED_BYTES_SET, | |
60 STREAMING_SET, | |
61 LOADED_SET, | |
62 NETWORK_ACTIVITY_SET, | |
63 CURRENT_READ_POSITION_SET, | |
64 | |
65 // Playback has ended. | |
66 // params: none. | |
67 ENDED, | |
68 | |
69 // The audio renderer has been disabled. | |
70 // params: none. | |
71 AUDIO_RENDERER_DISABLED, | |
72 | |
43 // The extents of the sliding buffer have changed. | 73 // The extents of the sliding buffer have changed. |
44 // params: "buffer_start": <first buffered byte>. | 74 // params: "buffer_start": <first buffered byte>. |
45 // "buffer_current": <current offset>. | 75 // "buffer_current": <current offset>. |
46 // "buffer_end": <last buffered byte>. | 76 // "buffer_end": <last buffered byte>. |
47 BUFFERED_EXTENTS_CHANGED, | 77 BUFFERED_EXTENTS_CHANGED, |
48 }; | 78 }; |
49 | 79 |
50 int32 id; | 80 int32 id; |
51 Type type; | 81 Type type; |
52 base::DictionaryValue params; | 82 base::DictionaryValue params; |
53 base::Time time; | 83 base::Time time; |
54 }; | 84 }; |
55 | 85 |
56 } // namespace media | 86 } // namespace media |
57 | 87 |
58 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ | 88 #endif // MEDIA_BASE_MEDIA_LOG_EVENT_H_ |
OLD | NEW |