OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class MediaElementWrappingImplementation extends ElementWrappingImplementation i
mplements MediaElement { | |
8 MediaElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 bool get autoplay() { return _ptr.autoplay; } | |
11 | |
12 void set autoplay(bool value) { _ptr.autoplay = value; } | |
13 | |
14 TimeRanges get buffered() { return LevelDom.wrapTimeRanges(_ptr.buffered); } | |
15 | |
16 bool get controls() { return _ptr.controls; } | |
17 | |
18 void set controls(bool value) { _ptr.controls = value; } | |
19 | |
20 String get currentSrc() { return _ptr.currentSrc; } | |
21 | |
22 num get currentTime() { return _ptr.currentTime; } | |
23 | |
24 void set currentTime(num value) { _ptr.currentTime = value; } | |
25 | |
26 bool get defaultMuted() { return _ptr.defaultMuted; } | |
27 | |
28 void set defaultMuted(bool value) { _ptr.defaultMuted = value; } | |
29 | |
30 num get defaultPlaybackRate() { return _ptr.defaultPlaybackRate; } | |
31 | |
32 void set defaultPlaybackRate(num value) { _ptr.defaultPlaybackRate = value; } | |
33 | |
34 num get duration() { return _ptr.duration; } | |
35 | |
36 bool get ended() { return _ptr.ended; } | |
37 | |
38 MediaError get error() { return LevelDom.wrapMediaError(_ptr.error); } | |
39 | |
40 num get initialTime() { return _ptr.initialTime; } | |
41 | |
42 bool get loop() { return _ptr.loop; } | |
43 | |
44 void set loop(bool value) { _ptr.loop = value; } | |
45 | |
46 bool get muted() { return _ptr.muted; } | |
47 | |
48 void set muted(bool value) { _ptr.muted = value; } | |
49 | |
50 int get networkState() { return _ptr.networkState; } | |
51 | |
52 bool get paused() { return _ptr.paused; } | |
53 | |
54 num get playbackRate() { return _ptr.playbackRate; } | |
55 | |
56 void set playbackRate(num value) { _ptr.playbackRate = value; } | |
57 | |
58 TimeRanges get played() { return LevelDom.wrapTimeRanges(_ptr.played); } | |
59 | |
60 String get preload() { return _ptr.preload; } | |
61 | |
62 void set preload(String value) { _ptr.preload = value; } | |
63 | |
64 int get readyState() { return _ptr.readyState; } | |
65 | |
66 TimeRanges get seekable() { return LevelDom.wrapTimeRanges(_ptr.seekable); } | |
67 | |
68 bool get seeking() { return _ptr.seeking; } | |
69 | |
70 String get src() { return _ptr.src; } | |
71 | |
72 void set src(String value) { _ptr.src = value; } | |
73 | |
74 num get startTime() { return _ptr.startTime; } | |
75 | |
76 num get volume() { return _ptr.volume; } | |
77 | |
78 void set volume(num value) { _ptr.volume = value; } | |
79 | |
80 int get webkitAudioDecodedByteCount() { return _ptr.webkitAudioDecodedByteCoun
t; } | |
81 | |
82 bool get webkitClosedCaptionsVisible() { return _ptr.webkitClosedCaptionsVisib
le; } | |
83 | |
84 void set webkitClosedCaptionsVisible(bool value) { _ptr.webkitClosedCaptionsVi
sible = value; } | |
85 | |
86 bool get webkitHasClosedCaptions() { return _ptr.webkitHasClosedCaptions; } | |
87 | |
88 bool get webkitPreservesPitch() { return _ptr.webkitPreservesPitch; } | |
89 | |
90 void set webkitPreservesPitch(bool value) { _ptr.webkitPreservesPitch = value;
} | |
91 | |
92 int get webkitVideoDecodedByteCount() { return _ptr.webkitVideoDecodedByteCoun
t; } | |
93 | |
94 String canPlayType(String type) { | |
95 return _ptr.canPlayType(type); | |
96 } | |
97 | |
98 void load() { | |
99 _ptr.load(); | |
100 return; | |
101 } | |
102 | |
103 void pause() { | |
104 _ptr.pause(); | |
105 return; | |
106 } | |
107 | |
108 void play() { | |
109 _ptr.play(); | |
110 return; | |
111 } | |
112 } | |
OLD | NEW |