| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Sets a master clock. | 31 // Sets a master clock. |
| 32 SetMasterClock(Clock? master_clock); | 32 SetMasterClock(Clock? master_clock); |
| 33 | 33 |
| 34 // Gets the consumer for the stream to be delivered. | 34 // Gets the consumer for the stream to be delivered. |
| 35 GetConsumer(MediaConsumer& consumer); | 35 GetConsumer(MediaConsumer& consumer); |
| 36 | 36 |
| 37 // Gets the status. To get the status immediately, call | 37 // Gets the status. To get the status immediately, call |
| 38 // GetStatus(kInitialStatus). To get updates thereafter, pass the version | 38 // GetStatus(kInitialStatus). To get updates thereafter, pass the version |
| 39 // sent in the previous callback. | 39 // sent in the previous callback. |
| 40 GetStatus(uint64 version_last_seen) => | 40 GetStatus(uint64 version_last_seen) |
| 41 (uint64 version, MediaSinkStatus status); | 41 => (uint64 version, MediaSinkStatus status); |
| 42 | 42 |
| 43 // Starts playback. | 43 // Starts playback. |
| 44 Play(); | 44 Play(); |
| 45 | 45 |
| 46 // Pauses playback. | 46 // Pauses playback. |
| 47 Pause(); | 47 Pause(); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // MediaSink status information. | 50 // MediaSink status information. |
| 51 struct MediaSinkStatus { | 51 struct MediaSinkStatus { |
| 52 // Current state of the sink. | 52 // Current state of the sink. |
| 53 MediaState state; | 53 MediaState state; |
| 54 | 54 |
| 55 // Transform translating local time to presentation time. Reverse translation | 55 // Transform translating local time to presentation time. Reverse translation |
| 56 // (presentation time to local time) is only valid when media is playing. | 56 // (presentation time to local time) is only valid when media is playing. |
| 57 TimelineTransform? timeline_transform; | 57 TimelineTransform? timeline_transform; |
| 58 }; | 58 }; |
| OLD | NEW |