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

Unified Diff: mojo/services/public/interfaces/media/media_types.mojom

Issue 491733004: media: add basic MediaRenderer mojom and TypeConverters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/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;
+};
+
+}

Powered by Google App Engine
This is Rietveld 408576698