OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface MediaController { | 7 interface MediaController { |
8 | 8 |
9 TimeRanges get buffered(); | 9 final TimeRanges buffered; |
10 | 10 |
11 num get currentTime(); | 11 num currentTime; |
12 | 12 |
13 void set currentTime(num value); | 13 num defaultPlaybackRate; |
14 | 14 |
15 num get defaultPlaybackRate(); | 15 final num duration; |
16 | 16 |
17 void set defaultPlaybackRate(num value); | 17 bool muted; |
18 | 18 |
19 num get duration(); | 19 final bool paused; |
20 | 20 |
21 bool get muted(); | 21 num playbackRate; |
22 | 22 |
23 void set muted(bool value); | 23 final TimeRanges played; |
24 | 24 |
25 bool get paused(); | 25 final TimeRanges seekable; |
26 | 26 |
27 num get playbackRate(); | 27 num volume; |
28 | |
29 void set playbackRate(num value); | |
30 | |
31 TimeRanges get played(); | |
32 | |
33 TimeRanges get seekable(); | |
34 | |
35 num get volume(); | |
36 | |
37 void set volume(num value); | |
38 | 28 |
39 void addEventListener(String type, EventListener listener, [bool useCapture]); | 29 void addEventListener(String type, EventListener listener, [bool useCapture]); |
40 | 30 |
41 bool dispatchEvent(Event evt); | 31 bool dispatchEvent(Event evt); |
42 | 32 |
43 void pause(); | 33 void pause(); |
44 | 34 |
45 void play(); | 35 void play(); |
46 | 36 |
47 void removeEventListener(String type, EventListener listener, [bool useCapture
]); | 37 void removeEventListener(String type, EventListener listener, [bool useCapture
]); |
48 } | 38 } |
OLD | NEW |