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

Unified Diff: mojo/services/media/core/interfaces/media_renderer.mojom

Issue 2069873003: Motown: Define MediaRenderer and make it the way we identify renderers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix build break...audio_track_controller.* gone for good. Created 4 years, 6 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
« no previous file with comments | « mojo/services/media/core/interfaces/BUILD.gn ('k') | services/media/audio/audio_server_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/media/core/interfaces/media_renderer.mojom
diff --git a/mojo/services/media/control/interfaces/media_sink.mojom b/mojo/services/media/core/interfaces/media_renderer.mojom
similarity index 50%
copy from mojo/services/media/control/interfaces/media_sink.mojom
copy to mojo/services/media/core/interfaces/media_renderer.mojom
index 85711a1442383637b9beaff1b5aeaa056c82f56f..a52ab9afb86a0f7c9fef2a2c4d094a38b0c239b2 100644
--- a/mojo/services/media/control/interfaces/media_sink.mojom
+++ b/mojo/services/media/core/interfaces/media_renderer.mojom
@@ -1,4 +1,4 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
+// Copyright 2016 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.
@@ -6,17 +6,20 @@
module mojo.media;
import "mojo/services/media/common/interfaces/media_transport.mojom";
+import "mojo/services/media/common/interfaces/media_types.mojom";
import "mojo/services/media/core/interfaces/timeline_controller.mojom";
-// TODO(dalesat): Define a media sink that multiplexes streams.
+// Models a service that renders content.
+interface MediaRenderer {
+ // Gets the list of supported media types.
+ GetSupportedMediaTypes() => (array<MediaTypeSet> supported_media_types);
-// Consumes media streams and delivers them to specified destinations.
-interface MediaSink {
- // TODO(dalesat): Support fanout to many destinations.
+ // Sets the media type of the stream to be delivered.
+ SetMediaType(MediaType media_type);
// Gets the consumer for the stream to be delivered.
GetConsumer(MediaConsumer& consumer);
- // Request the timeline control site for this sink
+ // Requests the timeline control site for this output.
GetTimelineControlSite(MediaTimelineControlSite& timeline_control_site);
};
« no previous file with comments | « mojo/services/media/core/interfaces/BUILD.gn ('k') | services/media/audio/audio_server_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698