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_clock.mojom"; | 8 import "mojo/services/media/common/interfaces/media_clock.mojom"; |
9 import "mojo/services/media/common/interfaces/media_common.mojom"; | 9 import "mojo/services/media/common/interfaces/media_common.mojom"; |
10 import "mojo/services/media/common/interfaces/media_state.mojom"; | 10 import "mojo/services/media/common/interfaces/media_state.mojom"; |
(...skipping 14 matching lines...) Expand all Loading... |
25 GetMasterClock(Clock& master_clock); | 25 GetMasterClock(Clock& master_clock); |
26 | 26 |
27 // Sets a master clock. | 27 // Sets a master clock. |
28 SetMasterClock(Clock? master_clock); | 28 SetMasterClock(Clock? master_clock); |
29 | 29 |
30 // Gets the consumer for the stream to be delivered. | 30 // Gets the consumer for the stream to be delivered. |
31 GetConsumer(MediaConsumer& consumer); | 31 GetConsumer(MediaConsumer& consumer); |
32 | 32 |
33 // Gets the status. To get the status immediately, call GetStatus(0). To | 33 // Gets the status. To get the status immediately, call GetStatus(0). To |
34 // get updates thereafter, pass the version sent in the previous callback. | 34 // get updates thereafter, pass the version sent in the previous callback. |
35 GetStatus(uint64 version_last_seen) => | 35 GetStatus(uint64 version_last_seen) |
36 (uint64 version, MediaSinkStatus status); | 36 => (uint64 version, MediaSinkStatus status); |
37 | 37 |
38 // Starts playback. | 38 // Starts playback. |
39 Play(); | 39 Play(); |
40 | 40 |
41 // Pauses playback. | 41 // Pauses playback. |
42 Pause(); | 42 Pause(); |
43 }; | 43 }; |
44 | 44 |
45 // MediaSink status information. | 45 // MediaSink status information. |
46 struct MediaSinkStatus { | 46 struct MediaSinkStatus { |
47 // Current state of the sink. | 47 // Current state of the sink. |
48 MediaState state; | 48 MediaState state; |
49 | 49 |
50 // Transform translating local time to presentation time. Reverse translation | 50 // Transform translating local time to presentation time. Reverse translation |
51 // (presentation time to local time) is only valid when media is playing. | 51 // (presentation time to local time) is only valid when media is playing. |
52 TimelineTransform? timeline_transform; | 52 TimelineTransform? timeline_transform; |
53 }; | 53 }; |
OLD | NEW |