OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OBSERVER_H_ | 5 #ifndef MEDIA_BASE_MEDIA_OBSERVER_H_ |
6 #define MEDIA_BASE_MEDIA_OBSERVER_H_ | 6 #define MEDIA_BASE_MEDIA_OBSERVER_H_ |
7 | 7 |
8 #include "media/base/cdm_context.h" | 8 #include "media/base/cdm_context.h" |
9 #include "media/base/pipeline_metadata.h" | 9 #include "media/base/pipeline_metadata.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Called to indicate whether the site requests that remote playback be | 49 // Called to indicate whether the site requests that remote playback be |
50 // disabled. The "disabled" naming corresponds with the | 50 // disabled. The "disabled" naming corresponds with the |
51 // "disableRemotePlayback" media element attribute, as described in the | 51 // "disableRemotePlayback" media element attribute, as described in the |
52 // Remote Playback API spec: https://w3c.github.io/remote-playback | 52 // Remote Playback API spec: https://w3c.github.io/remote-playback |
53 virtual void OnRemotePlaybackDisabled(bool disabled) = 0; | 53 virtual void OnRemotePlaybackDisabled(bool disabled) = 0; |
54 | 54 |
55 // Called when the media is playing/paused. | 55 // Called when the media is playing/paused. |
56 virtual void OnPlaying() = 0; | 56 virtual void OnPlaying() = 0; |
57 virtual void OnPaused() = 0; | 57 virtual void OnPaused() = 0; |
58 | 58 |
59 // Called when a poster image URL is set, which happens when media is loaded | |
60 // or the poster attribute is changed. | |
61 virtual void OnSetPoster(const GURL& poster) = 0; | |
62 | |
63 // Set the MediaObserverClient. | 59 // Set the MediaObserverClient. |
64 virtual void SetClient(MediaObserverClient* client) = 0; | 60 virtual void SetClient(MediaObserverClient* client) = 0; |
65 }; | 61 }; |
66 | 62 |
67 } // namespace media | 63 } // namespace media |
68 | 64 |
69 #endif // MEDIA_BASE_MEDIA_OBSERVER_H_ | 65 #endif // MEDIA_BASE_MEDIA_OBSERVER_H_ |
OLD | NEW |