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 HTMLMediaElement extends HTMLElement { | 7 interface HTMLMediaElement extends HTMLElement { |
8 | 8 |
9 static final int EOS_DECODE_ERR = 2; | 9 static final int EOS_DECODE_ERR = 2; |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 static final int NETWORK_LOADING = 2; | 29 static final int NETWORK_LOADING = 2; |
30 | 30 |
31 static final int NETWORK_NO_SOURCE = 3; | 31 static final int NETWORK_NO_SOURCE = 3; |
32 | 32 |
33 static final int SOURCE_CLOSED = 0; | 33 static final int SOURCE_CLOSED = 0; |
34 | 34 |
35 static final int SOURCE_ENDED = 2; | 35 static final int SOURCE_ENDED = 2; |
36 | 36 |
37 static final int SOURCE_OPEN = 1; | 37 static final int SOURCE_OPEN = 1; |
38 | 38 |
39 bool get autoplay(); | 39 bool autoplay; |
40 | 40 |
41 void set autoplay(bool value); | 41 final TimeRanges buffered; |
42 | 42 |
43 TimeRanges get buffered(); | 43 MediaController controller; |
44 | 44 |
45 MediaController get controller(); | 45 bool controls; |
46 | 46 |
47 void set controller(MediaController value); | 47 final String currentSrc; |
48 | 48 |
49 bool get controls(); | 49 num currentTime; |
50 | 50 |
51 void set controls(bool value); | 51 bool defaultMuted; |
52 | 52 |
53 String get currentSrc(); | 53 num defaultPlaybackRate; |
54 | 54 |
55 num get currentTime(); | 55 final num duration; |
56 | 56 |
57 void set currentTime(num value); | 57 final bool ended; |
58 | 58 |
59 bool get defaultMuted(); | 59 final MediaError error; |
60 | 60 |
61 void set defaultMuted(bool value); | 61 final num initialTime; |
62 | 62 |
63 num get defaultPlaybackRate(); | 63 bool loop; |
64 | 64 |
65 void set defaultPlaybackRate(num value); | 65 String mediaGroup; |
66 | 66 |
67 num get duration(); | 67 bool muted; |
68 | 68 |
69 bool get ended(); | 69 final int networkState; |
70 | 70 |
71 MediaError get error(); | 71 final bool paused; |
72 | 72 |
73 num get initialTime(); | 73 num playbackRate; |
74 | 74 |
75 bool get loop(); | 75 final TimeRanges played; |
76 | 76 |
77 void set loop(bool value); | 77 String preload; |
78 | 78 |
79 String get mediaGroup(); | 79 final int readyState; |
80 | 80 |
81 void set mediaGroup(String value); | 81 final TimeRanges seekable; |
82 | 82 |
83 bool get muted(); | 83 final bool seeking; |
84 | 84 |
85 void set muted(bool value); | 85 String src; |
86 | 86 |
87 int get networkState(); | 87 final num startTime; |
88 | 88 |
89 bool get paused(); | 89 final TextTrackList textTracks; |
90 | 90 |
91 num get playbackRate(); | 91 num volume; |
92 | 92 |
93 void set playbackRate(num value); | 93 final int webkitAudioDecodedByteCount; |
94 | 94 |
95 TimeRanges get played(); | 95 bool webkitClosedCaptionsVisible; |
96 | 96 |
97 String get preload(); | 97 final bool webkitHasClosedCaptions; |
98 | 98 |
99 void set preload(String value); | 99 final String webkitMediaSourceURL; |
100 | 100 |
101 int get readyState(); | 101 bool webkitPreservesPitch; |
102 | 102 |
103 TimeRanges get seekable(); | 103 final int webkitSourceState; |
104 | 104 |
105 bool get seeking(); | 105 final int webkitVideoDecodedByteCount; |
106 | |
107 String get src(); | |
108 | |
109 void set src(String value); | |
110 | |
111 num get startTime(); | |
112 | |
113 TextTrackList get textTracks(); | |
114 | |
115 num get volume(); | |
116 | |
117 void set volume(num value); | |
118 | |
119 int get webkitAudioDecodedByteCount(); | |
120 | |
121 bool get webkitClosedCaptionsVisible(); | |
122 | |
123 void set webkitClosedCaptionsVisible(bool value); | |
124 | |
125 bool get webkitHasClosedCaptions(); | |
126 | |
127 String get webkitMediaSourceURL(); | |
128 | |
129 bool get webkitPreservesPitch(); | |
130 | |
131 void set webkitPreservesPitch(bool value); | |
132 | |
133 int get webkitSourceState(); | |
134 | |
135 int get webkitVideoDecodedByteCount(); | |
136 | 106 |
137 TextTrack addTrack(String kind, [String label, String language]); | 107 TextTrack addTrack(String kind, [String label, String language]); |
138 | 108 |
139 String canPlayType(String type); | 109 String canPlayType(String type); |
140 | 110 |
141 void load(); | 111 void load(); |
142 | 112 |
143 void pause(); | 113 void pause(); |
144 | 114 |
145 void play(); | 115 void play(); |
146 | 116 |
147 void webkitSourceAppend(Uint8Array data); | 117 void webkitSourceAppend(Uint8Array data); |
148 | 118 |
149 void webkitSourceEndOfStream(int status); | 119 void webkitSourceEndOfStream(int status); |
150 } | 120 } |
OLD | NEW |