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_common.mojom"; | 8 import "mojo/services/media/common/interfaces/media_common.mojom"; |
9 import "mojo/services/media/common/interfaces/media_state.mojom"; | 9 import "mojo/services/media/common/interfaces/media_state.mojom"; |
10 import "mojo/services/media/common/interfaces/media_transport.mojom"; | 10 import "mojo/services/media/common/interfaces/media_transport.mojom"; |
11 import "mojo/services/media/common/interfaces/media_types.mojom"; | 11 import "mojo/services/media/common/interfaces/media_types.mojom"; |
12 import "mojo/services/media/common/interfaces/rate_control.mojom"; | 12 import "mojo/services/media/common/interfaces/timelines.mojom"; |
13 | 13 |
14 // TODO(dalesat): Define a media sink that multiplexes streams. | 14 // TODO(dalesat): Define a media sink that multiplexes streams. |
15 | 15 |
16 // Consumes media streams and delivers them to specified destinations. | 16 // Consumes media streams and delivers them to specified destinations. |
17 interface MediaSink { | 17 interface MediaSink { |
18 // TODO(dalesat): Support fanout to many destinations. | 18 // TODO(dalesat): Support fanout to many destinations. |
19 | 19 |
20 // Special value for GetStatus version_last_seen parameter to get the current | 20 // Special value for GetStatus version_last_seen parameter to get the current |
21 // status immediately. | 21 // status immediately. |
22 const uint64 kInitialStatus = 0; | 22 const uint64 kInitialStatus = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
37 Pause(); | 37 Pause(); |
38 }; | 38 }; |
39 | 39 |
40 // MediaSink status information. | 40 // MediaSink status information. |
41 struct MediaSinkStatus { | 41 struct MediaSinkStatus { |
42 // Current state of the sink. | 42 // Current state of the sink. |
43 MediaState state; | 43 MediaState state; |
44 | 44 |
45 // Transform translating local time to presentation time. Reverse translation | 45 // Transform translating local time to presentation time. Reverse translation |
46 // (presentation time to local time) is only valid when media is playing. | 46 // (presentation time to local time) is only valid when media is playing. |
47 TimelineTransform? timeline_transform; | 47 mojo.TimelineTransform? timeline_transform; |
48 }; | 48 }; |
OLD | NEW |