Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: media/base/media_observer.h

Issue 2587613002: Media Remoting: Switch to remoting only when media is playing. (Closed)
Patch Set: Addressed comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10
(...skipping 18 matching lines...) Expand all
29 virtual void OnSetCdm(CdmContext* cdm_context) = 0; 29 virtual void OnSetCdm(CdmContext* cdm_context) = 0;
30 30
31 // Called after demuxer is initialized. 31 // Called after demuxer is initialized.
32 virtual void OnMetadataChanged(const PipelineMetadata& metadata) = 0; 32 virtual void OnMetadataChanged(const PipelineMetadata& metadata) = 0;
33 33
34 // Called to indicate whether the site requests that remote playback be 34 // Called to indicate whether the site requests that remote playback be
35 // disabled. The "disabled" naming corresponds with the 35 // disabled. The "disabled" naming corresponds with the
36 // "disableRemotePlayback" media element attribute, as described in the 36 // "disableRemotePlayback" media element attribute, as described in the
37 // Remote Playback API spec: https://w3c.github.io/remote-playback 37 // Remote Playback API spec: https://w3c.github.io/remote-playback
38 virtual void OnRemotePlaybackDisabled(bool disabled) = 0; 38 virtual void OnRemotePlaybackDisabled(bool disabled) = 0;
39
40 // Called when the media is playing/paused.
41 virtual void OnPlaying() = 0;
42 virtual void OnPaused() = 0;
39 }; 43 };
40 44
41 } // namespace media 45 } // namespace media
42 46
43 #endif // MEDIA_BASE_MEDIA_OBSERVER_H_ 47 #endif // MEDIA_BASE_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698