| 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; |
| 10 |
| 11 static final int EOS_NETWORK_ERR = 1; |
| 12 |
| 13 static final int EOS_NO_ERROR = 0; |
| 14 |
| 9 static final int HAVE_CURRENT_DATA = 2; | 15 static final int HAVE_CURRENT_DATA = 2; |
| 10 | 16 |
| 11 static final int HAVE_ENOUGH_DATA = 4; | 17 static final int HAVE_ENOUGH_DATA = 4; |
| 12 | 18 |
| 13 static final int HAVE_FUTURE_DATA = 3; | 19 static final int HAVE_FUTURE_DATA = 3; |
| 14 | 20 |
| 15 static final int HAVE_METADATA = 1; | 21 static final int HAVE_METADATA = 1; |
| 16 | 22 |
| 17 static final int HAVE_NOTHING = 0; | 23 static final int HAVE_NOTHING = 0; |
| 18 | 24 |
| 19 static final int NETWORK_EMPTY = 0; | 25 static final int NETWORK_EMPTY = 0; |
| 20 | 26 |
| 21 static final int NETWORK_IDLE = 1; | 27 static final int NETWORK_IDLE = 1; |
| 22 | 28 |
| 23 static final int NETWORK_LOADING = 2; | 29 static final int NETWORK_LOADING = 2; |
| 24 | 30 |
| 25 static final int NETWORK_NO_SOURCE = 3; | 31 static final int NETWORK_NO_SOURCE = 3; |
| 26 | 32 |
| 33 static final int SOURCE_CLOSED = 0; |
| 34 |
| 35 static final int SOURCE_ENDED = 2; |
| 36 |
| 37 static final int SOURCE_OPEN = 1; |
| 38 |
| 27 bool get autoplay(); | 39 bool get autoplay(); |
| 28 | 40 |
| 29 void set autoplay(bool value); | 41 void set autoplay(bool value); |
| 30 | 42 |
| 31 TimeRanges get buffered(); | 43 TimeRanges get buffered(); |
| 32 | 44 |
| 33 bool get controls(); | 45 bool get controls(); |
| 34 | 46 |
| 35 void set controls(bool value); | 47 void set controls(bool value); |
| 36 | 48 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void set volume(num value); | 107 void set volume(num value); |
| 96 | 108 |
| 97 int get webkitAudioDecodedByteCount(); | 109 int get webkitAudioDecodedByteCount(); |
| 98 | 110 |
| 99 bool get webkitClosedCaptionsVisible(); | 111 bool get webkitClosedCaptionsVisible(); |
| 100 | 112 |
| 101 void set webkitClosedCaptionsVisible(bool value); | 113 void set webkitClosedCaptionsVisible(bool value); |
| 102 | 114 |
| 103 bool get webkitHasClosedCaptions(); | 115 bool get webkitHasClosedCaptions(); |
| 104 | 116 |
| 117 String get webkitMediaSourceURL(); |
| 118 |
| 105 bool get webkitPreservesPitch(); | 119 bool get webkitPreservesPitch(); |
| 106 | 120 |
| 107 void set webkitPreservesPitch(bool value); | 121 void set webkitPreservesPitch(bool value); |
| 108 | 122 |
| 123 int get webkitSourceState(); |
| 124 |
| 109 int get webkitVideoDecodedByteCount(); | 125 int get webkitVideoDecodedByteCount(); |
| 110 | 126 |
| 127 TextTrack addTrack(String kind, [String label, String language]); |
| 128 |
| 111 String canPlayType(String type); | 129 String canPlayType(String type); |
| 112 | 130 |
| 113 void load(); | 131 void load(); |
| 114 | 132 |
| 115 void pause(); | 133 void pause(); |
| 116 | 134 |
| 117 void play(); | 135 void play(); |
| 136 |
| 137 void webkitSourceAppend(Uint8Array data); |
| 138 |
| 139 void webkitSourceEndOfStream(int status); |
| 118 } | 140 } |
| OLD | NEW |