Index: mojo/services/media/common/interfaces/media_state.mojom |
diff --git a/mojo/services/media/common/interfaces/media_state.mojom b/mojo/services/media/common/interfaces/media_state.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b94b16afbd0ff0a5923aa0787d6135049a708ba4 |
--- /dev/null |
+++ b/mojo/services/media/common/interfaces/media_state.mojom |
@@ -0,0 +1,30 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[DartPackage="mojo_services"] |
+module mojo.media; |
+ |
+// Expresses the overall state of a media component. |
+enum MediaState { |
+ // Unable to function due to error. Fault details are provided elsewhere. |
+ FAULT, |
+ |
+ // Intentionally disabled. |
+ DISABLED, |
+ |
+ // Requires preparation in order to function. |
+ UNPREPARED, |
+ |
+ // Preparation underway. |
+ PREPARING, |
+ |
+ // Fully prepared, rate zero (paused). |
+ PREPARED, |
+ |
+ // Fully prepared, rate non-zero. |
+ PLAYING, |
johngro
2015/12/10 21:46:02
design question; we can defer action on this until
dalesat
2015/12/10 22:33:38
Many good questions. I've renamed PREPARED -> PAUS
|
+ |
+ // Stopped playing because end-of-stream was encountered. |
+ ENDED |
+}; |