Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: mojo/services/media/control/interfaces/media_source.mojom

Issue 1874003002: Motown: Get rid of speculative clock definition (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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";
9 import "mojo/services/media/common/interfaces/media_common.mojom"; 8 import "mojo/services/media/common/interfaces/media_common.mojom";
10 import "mojo/services/media/common/interfaces/media_metadata.mojom"; 9 import "mojo/services/media/common/interfaces/media_metadata.mojom";
11 import "mojo/services/media/common/interfaces/media_state.mojom"; 10 import "mojo/services/media/common/interfaces/media_state.mojom";
12 import "mojo/services/media/common/interfaces/media_transport.mojom"; 11 import "mojo/services/media/common/interfaces/media_transport.mojom";
13 import "mojo/services/media/common/interfaces/media_types.mojom"; 12 import "mojo/services/media/common/interfaces/media_types.mojom";
14 13
15 // Produces media streams delivered from a specified origin. 14 // Produces media streams delivered from a specified origin.
16 interface MediaSource { 15 interface MediaSource {
17 // Special value for GetStatus version_last_seen parameter to get the current 16 // Special value for GetStatus version_last_seen parameter to get the current
18 // status immediately. 17 // status immediately.
19 const uint64 kInitialStatus = 0; 18 const uint64 kInitialStatus = 0;
20 19
21 // Gets the streams produced by this source. 20 // Gets the streams produced by this source.
22 GetStreams() => (array<MediaSourceStreamDescriptor> streams); 21 GetStreams() => (array<MediaSourceStreamDescriptor> streams);
23 22
24 // Gets the clock disposition from the source.
25 GetClockDisposition() => (ClockDisposition clock_disposition);
26
27 // Gets a master clock if the source can be master, null otherwise.
28 GetMasterClock(Clock& master_clock);
29
30 // Sets a master clock.
31 SetMasterClock(Clock? master_clock);
32
33 // Gets the producer for the specified stream. 23 // Gets the producer for the specified stream.
34 GetProducer(uint32 stream_index, MediaProducer& producer); 24 GetProducer(uint32 stream_index, MediaProducer& producer);
35 25
36 // Gets the pull mode producer for the specified stream. 26 // Gets the pull mode producer for the specified stream.
37 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer); 27 GetPullModeProducer(uint32 stream_index, MediaPullModeProducer& producer);
38 28
39 // Gets the status. To get the status immediately, call 29 // Gets the status. To get the status immediately, call
40 // GetStatus(kInitialStatus). To get updates thereafter, pass the version 30 // GetStatus(kInitialStatus). To get updates thereafter, pass the version
41 // sent in the previous callback. 31 // sent in the previous callback.
42 GetStatus(uint64 version_last_seen) 32 GetStatus(uint64 version_last_seen)
(...skipping 25 matching lines...) Expand all
68 }; 58 };
69 59
70 // Describes the media source. 60 // Describes the media source.
71 struct MediaSourceStatus { 61 struct MediaSourceStatus {
72 // Current state of the source. 62 // Current state of the source.
73 MediaState state; 63 MediaState state;
74 64
75 // Describes the media. 65 // Describes the media.
76 MediaMetadata? metadata; 66 MediaMetadata? metadata;
77 }; 67 };
OLDNEW
« no previous file with comments | « mojo/services/media/control/interfaces/media_sink.mojom ('k') | services/media/factory_service/media_sink_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698