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

Unified Diff: mojo/services/media/control/interfaces/media_source.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_source.mojom
diff --git a/mojo/services/media/control/interfaces/media_source.mojom b/mojo/services/media/control/interfaces/media_source.mojom
index a4cebd31b091366c06b9c3316352c715c8148644..59f40c402ad081229218dbc710bf8995938fd5f8 100644
--- a/mojo/services/media/control/interfaces/media_source.mojom
+++ b/mojo/services/media/control/interfaces/media_source.mojom
@@ -14,6 +14,10 @@ import "mojo/services/media/common/interfaces/media_types.mojom";
// Produces media streams delivered from a specified origin.
interface MediaSource {
+ // Special value for GetStatus version_last_seen parameter to get the current
+ // status immediately.
+ const uint64 kInitialStatus = 0;
+
// Gets the streams produced by this source.
GetStreams() => (array<MediaSourceStreamDescriptor> streams);
@@ -32,8 +36,9 @@ interface MediaSource {
// Gets the pull mode producer for the specified stream.
GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer);
- // 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, MediaSourceStatus status);

Powered by Google App Engine
This is Rietveld 408576698