| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo.media; | 6 module mojo.media; |
| 7 | 7 |
| 8 import "mojo/services/media/common/interfaces/media_transport.mojom"; | 8 import "mojo/services/media/common/interfaces/media_transport.mojom"; |
| 9 import "mojo/services/media/core/interfaces/timeline_controller.mojom"; | 9 import "mojo/services/media/core/interfaces/timeline_controller.mojom"; |
| 10 | 10 |
| 11 // TODO(dalesat): Define a media sink that multiplexes streams. | 11 // TODO(dalesat): Define a media sink that multiplexes streams. |
| 12 | 12 |
| 13 // Consumes media streams and delivers them to specified destinations. | 13 // Consumes media streams and delivers them to specified destinations. |
| 14 interface MediaSink { | 14 interface MediaSink { |
| 15 // TODO(dalesat): Support fanout to many destinations. | 15 // TODO(dalesat): Support fanout to many destinations. |
| 16 | 16 |
| 17 // Gets the consumer for the stream to be delivered. | 17 // Gets the packet consumer for the stream to be delivered. |
| 18 GetConsumer(MediaConsumer& consumer); | 18 GetPacketConsumer(MediaPacketConsumer& packet_consumer); |
| 19 | 19 |
| 20 // Request the timeline control point for this sink | 20 // Request the timeline control point for this sink |
| 21 GetTimelineControlPoint(MediaTimelineControlPoint& timeline_control_point); | 21 GetTimelineControlPoint(MediaTimelineControlPoint& timeline_control_point); |
| 22 }; | 22 }; |
| OLD | NEW |