| 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) => (uint64 version, MediaSinkStatus status
); |
| 36 (uint64 version, MediaSinkStatus status); | |
| 37 | 36 |
| 38 // Starts playback. | 37 // Starts playback. |
| 39 Play(); | 38 Play(); |
| 40 | 39 |
| 41 // Pauses playback. | 40 // Pauses playback. |
| 42 Pause(); | 41 Pause(); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 // MediaSink status information. | 44 // MediaSink status information. |
| 46 struct MediaSinkStatus { | 45 struct MediaSinkStatus { |
| 47 // Current state of the sink. | 46 // Current state of the sink. |
| 48 MediaState state; | 47 MediaState state; |
| 49 | 48 |
| 50 // Transform translating local time to presentation time. Reverse translation | 49 // Transform translating local time to presentation time. Reverse translation |
| 51 // (presentation time to local time) is only valid when media is playing. | 50 // (presentation time to local time) is only valid when media is playing. |
| 52 TimelineTransform? timeline_transform; | 51 TimelineTransform? timeline_transform; |
| 53 }; | 52 }; |
| OLD | NEW |