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

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

Issue 1986303002: Motown: Use new TimelineTransform and related definitions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixes per feedback. Created 4 years, 7 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_common.mojom"; 8 import "mojo/services/media/common/interfaces/media_common.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/media_transport.mojom"; 10 import "mojo/services/media/common/interfaces/media_transport.mojom";
11 import "mojo/services/media/common/interfaces/media_types.mojom"; 11 import "mojo/services/media/common/interfaces/media_types.mojom";
12 import "mojo/services/media/common/interfaces/rate_control.mojom"; 12 import "mojo/services/media/common/interfaces/timelines.mojom";
13 13
14 // TODO(dalesat): Define a media sink that multiplexes streams. 14 // TODO(dalesat): Define a media sink that multiplexes streams.
15 15
16 // Consumes media streams and delivers them to specified destinations. 16 // Consumes media streams and delivers them to specified destinations.
17 interface MediaSink { 17 interface MediaSink {
18 // TODO(dalesat): Support fanout to many destinations. 18 // TODO(dalesat): Support fanout to many destinations.
19 19
20 // Special value for GetStatus version_last_seen parameter to get the current 20 // Special value for GetStatus version_last_seen parameter to get the current
21 // status immediately. 21 // status immediately.
22 const uint64 kInitialStatus = 0; 22 const uint64 kInitialStatus = 0;
(...skipping 14 matching lines...) Expand all
37 Pause(); 37 Pause();
38 }; 38 };
39 39
40 // MediaSink status information. 40 // MediaSink status information.
41 struct MediaSinkStatus { 41 struct MediaSinkStatus {
42 // Current state of the sink. 42 // Current state of the sink.
43 MediaState state; 43 MediaState state;
44 44
45 // Transform translating local time to presentation time. Reverse translation 45 // Transform translating local time to presentation time. Reverse translation
46 // (presentation time to local time) is only valid when media is playing. 46 // (presentation time to local time) is only valid when media is playing.
47 TimelineTransform? timeline_transform; 47 mojo.TimelineTransform? timeline_transform;
48 }; 48 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698