| OLD | NEW |
| 1 | 1 |
| 2 class MediaController native "*MediaController" { | 2 class MediaControllerJS implements MediaController native "*MediaController" { |
| 3 | 3 |
| 4 TimeRanges get buffered() native "return this.buffered;"; | 4 TimeRangesJS get buffered() native "return this.buffered;"; |
| 5 | 5 |
| 6 num get currentTime() native "return this.currentTime;"; | 6 num get currentTime() native "return this.currentTime;"; |
| 7 | 7 |
| 8 void set currentTime(num value) native "this.currentTime = value;"; | 8 void set currentTime(num value) native "this.currentTime = value;"; |
| 9 | 9 |
| 10 num get defaultPlaybackRate() native "return this.defaultPlaybackRate;"; | 10 num get defaultPlaybackRate() native "return this.defaultPlaybackRate;"; |
| 11 | 11 |
| 12 void set defaultPlaybackRate(num value) native "this.defaultPlaybackRate = val
ue;"; | 12 void set defaultPlaybackRate(num value) native "this.defaultPlaybackRate = val
ue;"; |
| 13 | 13 |
| 14 num get duration() native "return this.duration;"; | 14 num get duration() native "return this.duration;"; |
| 15 | 15 |
| 16 bool get muted() native "return this.muted;"; | 16 bool get muted() native "return this.muted;"; |
| 17 | 17 |
| 18 void set muted(bool value) native "this.muted = value;"; | 18 void set muted(bool value) native "this.muted = value;"; |
| 19 | 19 |
| 20 bool get paused() native "return this.paused;"; | 20 bool get paused() native "return this.paused;"; |
| 21 | 21 |
| 22 num get playbackRate() native "return this.playbackRate;"; | 22 num get playbackRate() native "return this.playbackRate;"; |
| 23 | 23 |
| 24 void set playbackRate(num value) native "this.playbackRate = value;"; | 24 void set playbackRate(num value) native "this.playbackRate = value;"; |
| 25 | 25 |
| 26 TimeRanges get played() native "return this.played;"; | 26 TimeRangesJS get played() native "return this.played;"; |
| 27 | 27 |
| 28 TimeRanges get seekable() native "return this.seekable;"; | 28 TimeRangesJS get seekable() native "return this.seekable;"; |
| 29 | 29 |
| 30 num get volume() native "return this.volume;"; | 30 num get volume() native "return this.volume;"; |
| 31 | 31 |
| 32 void set volume(num value) native "this.volume = value;"; | 32 void set volume(num value) native "this.volume = value;"; |
| 33 | 33 |
| 34 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 34 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 35 | 35 |
| 36 bool dispatchEvent(Event evt) native; | 36 bool dispatchEvent(EventJS evt) native; |
| 37 | 37 |
| 38 void pause() native; | 38 void pause() native; |
| 39 | 39 |
| 40 void play() native; | 40 void play() native; |
| 41 | 41 |
| 42 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 42 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 43 | 43 |
| 44 var dartObjectLocalStorage; | 44 var dartObjectLocalStorage; |
| 45 | 45 |
| 46 String get typeName() native; | 46 String get typeName() native; |
| 47 } | 47 } |
| OLD | NEW |