| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 /// @domName HTMLMediaElement |
| 8 interface MediaElement extends Element { |
| 9 |
| 10 /** |
| 11 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve
ntTarget.dispatchEvent |
| 12 */ |
| 13 MediaElementEvents get on(); |
| 14 |
| 15 static final int EOS_DECODE_ERR = 2; |
| 16 |
| 17 static final int EOS_NETWORK_ERR = 1; |
| 18 |
| 19 static final int EOS_NO_ERROR = 0; |
| 20 |
| 21 static final int HAVE_CURRENT_DATA = 2; |
| 22 |
| 23 static final int HAVE_ENOUGH_DATA = 4; |
| 24 |
| 25 static final int HAVE_FUTURE_DATA = 3; |
| 26 |
| 27 static final int HAVE_METADATA = 1; |
| 28 |
| 29 static final int HAVE_NOTHING = 0; |
| 30 |
| 31 static final int NETWORK_EMPTY = 0; |
| 32 |
| 33 static final int NETWORK_IDLE = 1; |
| 34 |
| 35 static final int NETWORK_LOADING = 2; |
| 36 |
| 37 static final int NETWORK_NO_SOURCE = 3; |
| 38 |
| 39 static final int SOURCE_CLOSED = 0; |
| 40 |
| 41 static final int SOURCE_ENDED = 2; |
| 42 |
| 43 static final int SOURCE_OPEN = 1; |
| 44 |
| 45 /** @domName HTMLMediaElement.autoplay */ |
| 46 bool autoplay; |
| 47 |
| 48 /** @domName HTMLMediaElement.buffered */ |
| 49 final TimeRanges buffered; |
| 50 |
| 51 /** @domName HTMLMediaElement.controller */ |
| 52 MediaController controller; |
| 53 |
| 54 /** @domName HTMLMediaElement.controls */ |
| 55 bool controls; |
| 56 |
| 57 /** @domName HTMLMediaElement.currentSrc */ |
| 58 final String currentSrc; |
| 59 |
| 60 /** @domName HTMLMediaElement.currentTime */ |
| 61 num currentTime; |
| 62 |
| 63 /** @domName HTMLMediaElement.defaultMuted */ |
| 64 bool defaultMuted; |
| 65 |
| 66 /** @domName HTMLMediaElement.defaultPlaybackRate */ |
| 67 num defaultPlaybackRate; |
| 68 |
| 69 /** @domName HTMLMediaElement.duration */ |
| 70 final num duration; |
| 71 |
| 72 /** @domName HTMLMediaElement.ended */ |
| 73 final bool ended; |
| 74 |
| 75 /** @domName HTMLMediaElement.error */ |
| 76 final MediaError error; |
| 77 |
| 78 /** @domName HTMLMediaElement.initialTime */ |
| 79 final num initialTime; |
| 80 |
| 81 /** @domName HTMLMediaElement.loop */ |
| 82 bool loop; |
| 83 |
| 84 /** @domName HTMLMediaElement.mediaGroup */ |
| 85 String mediaGroup; |
| 86 |
| 87 /** @domName HTMLMediaElement.muted */ |
| 88 bool muted; |
| 89 |
| 90 /** @domName HTMLMediaElement.networkState */ |
| 91 final int networkState; |
| 92 |
| 93 /** @domName HTMLMediaElement.paused */ |
| 94 final bool paused; |
| 95 |
| 96 /** @domName HTMLMediaElement.playbackRate */ |
| 97 num playbackRate; |
| 98 |
| 99 /** @domName HTMLMediaElement.played */ |
| 100 final TimeRanges played; |
| 101 |
| 102 /** @domName HTMLMediaElement.preload */ |
| 103 String preload; |
| 104 |
| 105 /** @domName HTMLMediaElement.readyState */ |
| 106 final int readyState; |
| 107 |
| 108 /** @domName HTMLMediaElement.seekable */ |
| 109 final TimeRanges seekable; |
| 110 |
| 111 /** @domName HTMLMediaElement.seeking */ |
| 112 final bool seeking; |
| 113 |
| 114 /** @domName HTMLMediaElement.src */ |
| 115 String src; |
| 116 |
| 117 /** @domName HTMLMediaElement.startTime */ |
| 118 final num startTime; |
| 119 |
| 120 /** @domName HTMLMediaElement.textTracks */ |
| 121 final TextTrackList textTracks; |
| 122 |
| 123 /** @domName HTMLMediaElement.volume */ |
| 124 num volume; |
| 125 |
| 126 /** @domName HTMLMediaElement.webkitAudioDecodedByteCount */ |
| 127 final int webkitAudioDecodedByteCount; |
| 128 |
| 129 /** @domName HTMLMediaElement.webkitClosedCaptionsVisible */ |
| 130 bool webkitClosedCaptionsVisible; |
| 131 |
| 132 /** @domName HTMLMediaElement.webkitHasClosedCaptions */ |
| 133 final bool webkitHasClosedCaptions; |
| 134 |
| 135 /** @domName HTMLMediaElement.webkitMediaSourceURL */ |
| 136 final String webkitMediaSourceURL; |
| 137 |
| 138 /** @domName HTMLMediaElement.webkitPreservesPitch */ |
| 139 bool webkitPreservesPitch; |
| 140 |
| 141 /** @domName HTMLMediaElement.webkitSourceState */ |
| 142 final int webkitSourceState; |
| 143 |
| 144 /** @domName HTMLMediaElement.webkitVideoDecodedByteCount */ |
| 145 final int webkitVideoDecodedByteCount; |
| 146 |
| 147 /** @domName HTMLMediaElement.addTextTrack */ |
| 148 TextTrack addTextTrack(String kind, [String label, String language]); |
| 149 |
| 150 /** @domName HTMLMediaElement.canPlayType */ |
| 151 String canPlayType(String type, String keySystem); |
| 152 |
| 153 /** @domName HTMLMediaElement.load */ |
| 154 void load(); |
| 155 |
| 156 /** @domName HTMLMediaElement.pause */ |
| 157 void pause(); |
| 158 |
| 159 /** @domName HTMLMediaElement.play */ |
| 160 void play(); |
| 161 |
| 162 /** @domName HTMLMediaElement.webkitAddKey */ |
| 163 void webkitAddKey(String keySystem, Uint8Array key, [Uint8Array initData, Stri
ng sessionId]); |
| 164 |
| 165 /** @domName HTMLMediaElement.webkitCancelKeyRequest */ |
| 166 void webkitCancelKeyRequest(String keySystem, String sessionId); |
| 167 |
| 168 /** @domName HTMLMediaElement.webkitGenerateKeyRequest */ |
| 169 void webkitGenerateKeyRequest(String keySystem, [Uint8Array initData]); |
| 170 |
| 171 /** @domName HTMLMediaElement.webkitSourceAbort */ |
| 172 void webkitSourceAbort(String id); |
| 173 |
| 174 /** @domName HTMLMediaElement.webkitSourceAddId */ |
| 175 void webkitSourceAddId(String id, String type); |
| 176 |
| 177 /** @domName HTMLMediaElement.webkitSourceAppend */ |
| 178 void webkitSourceAppend(String id, Uint8Array data); |
| 179 |
| 180 /** @domName HTMLMediaElement.webkitSourceBuffered */ |
| 181 TimeRanges webkitSourceBuffered(String id); |
| 182 |
| 183 /** @domName HTMLMediaElement.webkitSourceEndOfStream */ |
| 184 void webkitSourceEndOfStream(int status); |
| 185 |
| 186 /** @domName HTMLMediaElement.webkitSourceRemoveId */ |
| 187 void webkitSourceRemoveId(String id); |
| 188 } |
| 189 |
| 190 interface MediaElementEvents extends ElementEvents { |
| 191 |
| 192 EventListenerList get keyAdded(); |
| 193 |
| 194 EventListenerList get keyError(); |
| 195 |
| 196 EventListenerList get keyMessage(); |
| 197 |
| 198 EventListenerList get needKey(); |
| 199 |
| 200 EventListenerList get sourceClose(); |
| 201 |
| 202 EventListenerList get sourceEnded(); |
| 203 |
| 204 EventListenerList get sourceOpen(); |
| 205 } |
| OLD | NEW |