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_metadata.mojom"; | 8 import "mojo/services/media/common/interfaces/media_metadata.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/rate_control.mojom"; | 10 import "mojo/services/media/common/interfaces/rate_control.mojom"; |
(...skipping 11 matching lines...) Expand all Loading... |
22 Pause(); | 22 Pause(); |
23 | 23 |
24 // Seeks to the specified position, specified in nanoseconds. | 24 // Seeks to the specified position, specified in nanoseconds. |
25 // TODO(dalesat): Consider adding relative vs remote flag. | 25 // TODO(dalesat): Consider adding relative vs remote flag. |
26 // TODO(dalesat): Consider adding parameters regarding desired precision. | 26 // TODO(dalesat): Consider adding parameters regarding desired precision. |
27 Seek(int64 position); | 27 Seek(int64 position); |
28 | 28 |
29 // Gets the status. To get the status immediately, call | 29 // Gets the status. To get the status immediately, call |
30 // GetStatus(kInitialStatus). To get updates thereafter, pass the version | 30 // GetStatus(kInitialStatus). To get updates thereafter, pass the version |
31 // sent in the previous callback. | 31 // sent in the previous callback. |
32 GetStatus(uint64 version_last_seen) => | 32 GetStatus(uint64 version_last_seen) |
33 (uint64 version, MediaPlayerStatus status); | 33 => (uint64 version, MediaPlayerStatus status); |
34 }; | 34 }; |
35 | 35 |
36 // MediaPlayer status information. | 36 // MediaPlayer status information. |
37 struct MediaPlayerStatus { | 37 struct MediaPlayerStatus { |
38 // Current state of the player. | 38 // Current state of the player. |
39 MediaState state; | 39 MediaState state; |
40 | 40 |
41 // Transform translating local time to presentation time. Reverse translation | 41 // Transform translating local time to presentation time. Reverse translation |
42 // (presentation time to local time) is only valid when media is playing. | 42 // (presentation time to local time) is only valid when media is playing. |
43 TimelineTransform? timeline_transform; | 43 TimelineTransform? timeline_transform; |
44 | 44 |
45 // Describes the media. | 45 // Describes the media. |
46 MediaMetadata? metadata; | 46 MediaMetadata? metadata; |
47 }; | 47 }; |
OLD | NEW |