Index: mojo/services/public/interfaces/media/media_types.mojom |
diff --git a/mojo/services/public/interfaces/media/media_types.mojom b/mojo/services/public/interfaces/media/media_types.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..cf279bdba87e96411b612c00b4db9c1fed40cece |
--- /dev/null |
+++ b/mojo/services/public/interfaces/media/media_types.mojom |
@@ -0,0 +1,42 @@ |
+// Copyright 2014 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. |
+ |
+module mojo { |
+ |
+enum PipelineStatus { |
+ OK, |
+ ERROR_URL_NOT_FOUND, |
+ ERROR_NETWORK, |
+ ERROR_DECODE, |
+ ERROR_DECRYPT, |
+ ERROR_ABORT, |
+ ERROR_INITIALIZATION_FAILED, |
+ ERROR_COULD_NOT_RENDER, |
+ ERROR_READ, |
+ ERROR_OPERATION_PENDING, |
+ ERROR_INVALID_STATE, |
+ ERROR_COULD_NOT_OPEN, |
+ ERROR_COULD_NOT_PARSE, |
+ ERROR_NO_SUPPORTED_STREAMS, |
+ ERROR_NOT_SUPPORTED |
+}; |
xhwang
2014/08/22 23:30:02
As discussed offline, you can just drop this. We o
|
+ |
+enum BufferingState { |
+ // Indicates that there is no data buffered. |
+ // |
+ // Typical reason is data underflow and hence playback should be paused. |
+ HAVE_NOTHING, |
+ |
+ // Indicates that enough data has been buffered. |
+ // |
+ // Typical reason is enough data has been prerolled to start playback. |
+ HAVE_ENOUGH, |
+}; |
+ |
+struct PipelineStatistics { |
+ // TODO(tim): Add video. |
+ uint64 audio_bytes_decoded; |
+}; |
+ |
+} |