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

Unified Diff: mojo/services/media/control/interfaces/media_sink.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_sink.mojom
diff --git a/mojo/services/media/control/interfaces/media_sink.mojom b/mojo/services/media/control/interfaces/media_sink.mojom
index efaa63081b5748e8bc07018b22f990c7c8cc3641..14c2f400ecab89092b45bd1ab11628ae1bf44c18 100644
--- a/mojo/services/media/control/interfaces/media_sink.mojom
+++ b/mojo/services/media/control/interfaces/media_sink.mojom
@@ -18,6 +18,10 @@ import "mojo/services/media/common/interfaces/rate_control.mojom";
interface MediaSink {
// TODO(dalesat): Support fanout to many destinations.
+ // Special value for GetStatus version_last_seen parameter to get the current
+ // status immediately.
+ const uint64 kInitialStatus = 0;
+
// Gets the clock disposition from the source.
GetClockDisposition() => (ClockDisposition clock_disposition);
@@ -30,8 +34,9 @@ interface MediaSink {
// Gets the consumer for the stream to be delivered.
GetConsumer(MediaConsumer& consumer);
- // 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, MediaSinkStatus status);

Powered by Google App Engine
This is Rietveld 408576698