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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_observer.h
diff --git a/media/base/media_observer.h b/media/base/media_observer.h
index ce81e3bb15ca4bd799edc60ff960340f04eb199d..31357810f1c03ca5cb02e6fa104aa5b768820811 100644
--- a/media/base/media_observer.h
+++ b/media/base/media_observer.h
@@ -36,6 +36,10 @@ class MEDIA_EXPORT MediaObserver {
// "disableRemotePlayback" media element attribute, as described in the
// Remote Playback API spec: https://w3c.github.io/remote-playback
virtual void OnRemotePlaybackDisabled(bool disabled) = 0;
+
+ // Called when the media is playing/paused.
+ virtual void OnPlaying() = 0;
+ virtual void OnPaused() = 0;
};
} // namespace media
« 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