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_metadata.mojom"; | 10 import "mojo/services/media/common/interfaces/media_metadata.mojom"; |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // Gets the producer for the specified stream. | 33 // Gets the producer for the specified stream. |
34 GetProducer(uint32 stream_index, MediaProducer& producer); | 34 GetProducer(uint32 stream_index, MediaProducer& producer); |
35 | 35 |
36 // Gets the pull mode producer for the specified stream. | 36 // Gets the pull mode producer for the specified stream. |
37 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer); | 37 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer); |
38 | 38 |
39 // Gets the status. To get the status immediately, call | 39 // Gets the status. To get the status immediately, call |
40 // GetStatus(kInitialStatus). To get updates thereafter, pass the version | 40 // GetStatus(kInitialStatus). To get updates thereafter, pass the version |
41 // sent in the previous callback. | 41 // sent in the previous callback. |
42 GetStatus(uint64 version_last_seen) => | 42 GetStatus(uint64 version_last_seen) |
43 (uint64 version, MediaSourceStatus status); | 43 => (uint64 version, MediaSourceStatus status); |
44 | 44 |
45 // Prepares the source. | 45 // Prepares the source. |
46 Prepare() => (); | 46 Prepare() => (); |
47 | 47 |
48 // Primes the source and downstream components. | 48 // Primes the source and downstream components. |
49 Prime() => (); | 49 Prime() => (); |
50 | 50 |
51 // Flushes the source and downstream components. | 51 // Flushes the source and downstream components. |
52 Flush() => (); | 52 Flush() => (); |
53 | 53 |
(...skipping 14 matching lines...) Expand all Loading... |
68 }; | 68 }; |
69 | 69 |
70 // Describes the media source. | 70 // Describes the media source. |
71 struct MediaSourceStatus { | 71 struct MediaSourceStatus { |
72 // Current state of the source. | 72 // Current state of the source. |
73 MediaState state; | 73 MediaState state; |
74 | 74 |
75 // Describes the media. | 75 // Describes the media. |
76 MediaMetadata? metadata; | 76 MediaMetadata? metadata; |
77 }; | 77 }; |
OLD | NEW |