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

Unified Diff: mojo/services/media/control/interfaces/media_player.mojom

Issue 1809703003: Motown: Add examples/media_test, a command line media player app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Tweaks based on feedback. Created 4 years, 9 months 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
Index: mojo/services/media/control/interfaces/media_player.mojom
diff --git a/mojo/services/media/control/interfaces/media_player.mojom b/mojo/services/media/control/interfaces/media_player.mojom
index 12cad67b7e852b60f2f05b6e5dc850fcfb9c2fa7..f9907bb60ff777f52dc2a0d9be840c6bea90a51c 100644
--- a/mojo/services/media/control/interfaces/media_player.mojom
+++ b/mojo/services/media/control/interfaces/media_player.mojom
@@ -11,6 +11,10 @@ import "mojo/services/media/common/interfaces/rate_control.mojom";
// Plays media.
interface MediaPlayer {
+ // Special value for GetStatus version_last_seen parameter to get the current
+ // status immediately.
+ const uint64 kInitialStatus = 0;
+
// Starts playback.
Play();
@@ -22,8 +26,9 @@ interface MediaPlayer {
// TODO(dalesat): Consider adding parameters regarding desired precision.
Seek(int64 position);
- // Gets the status. To get the status immediately, call GetStatus(0). To
- // get updates thereafter, pass the version sent in the previous callback.
+ // Gets the status. To get the status immediately, call
+ // GetStatus(kInitialStatus). To get updates thereafter, pass the version
+ // sent in the previous callback.
GetStatus(uint64 version_last_seen) =>
(uint64 version, MediaPlayerStatus status);
};

Powered by Google App Engine
This is Rietveld 408576698