Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM;
7
8/**
9 * HTMLMediaElement
10 *
11 * @see https://dom.spec.whatwg.org/#interface-htmlmediaelement
12 *
13 * @property int $nodeType
14 * @property string $nodeName
15 * @property string $baseURI
16 * @property bool $isConnected
17 * @property Document|null $ownerDocument
18 * @property Node|null $parentNode
19 * @property Element|null $parentElement
20 * @property NodeList $childNodes
21 * @property Node|null $firstChild
22 * @property Node|null $lastChild
23 * @property Node|null $previousSibling
24 * @property Node|null $nextSibling
25 * @property ?string $nodeValue
26 * @property ?string $textContent
27 * @property string $innerHTML
28 * @property Element|null $previousElementSibling
29 * @property Element|null $nextElementSibling
30 * @property HTMLCollection $children
31 * @property Element|null $firstElementChild
32 * @property Element|null $lastElementChild
33 * @property int $childElementCount
34 * @property HTMLSlotElement|null $assignedSlot
35 * @property ?string $namespaceURI
36 * @property ?string $prefix
37 * @property string $localName
38 * @property string $tagName
39 * @property string $id
40 * @property string $className
41 * @property DOMTokenList $classList
42 * @property string $slot
43 * @property NamedNodeMap $attributes
44 * @property ShadowRoot|null $shadowRoot
45 * @property string $outerHTML
46 * @property CSSStyleDeclaration $style
47 * @property string $contentEditable
48 * @property string $enterKeyHint
49 * @property bool $isContentEditable
50 * @property string $inputMode
51 * @property EventHandlerNonNull|callable|null $onload
52 * @property DOMStringMap $dataset
53 * @property string $nonce
54 * @property int $tabIndex
55 * @property string $title
56 * @property string $lang
57 * @property bool $translate
58 * @property string $dir
59 * @property bool $hidden
60 * @property string $accessKey
61 * @property string $accessKeyLabel
62 * @property bool $draggable
63 * @property bool $spellcheck
64 * @property string $autocapitalize
65 * @property string $innerText
66 * @property Element|null $offsetParent
67 * @property int $offsetTop
68 * @property int $offsetLeft
69 * @property int $offsetWidth
70 * @property int $offsetHeight
71 * @property ?string $crossOrigin
72 * @property string $src
73 * @property string $currentSrc
74 * @property int $networkState
75 * @property string $preload
76 * @property TimeRanges $buffered
77 * @property int $readyState
78 * @property bool $seeking
79 * @property float $currentTime
80 * @property float $duration
81 * @property bool $paused
82 * @property float $defaultPlaybackRate
83 * @property float $playbackRate
84 * @property TimeRanges $played
85 * @property TimeRanges $seekable
86 * @property bool $ended
87 * @property bool $autoplay
88 * @property bool $loop
89 * @property bool $controls
90 * @property float $volume
91 * @property bool $muted
92 * @property bool $defaultMuted
93 * @property AudioTrackList $audioTracks
94 * @property VideoTrackList $videoTracks
95 * @property TextTrackList $textTracks
96 * @phan-forbid-undeclared-magic-properties
97 */
98interface HTMLMediaElement extends HTMLElement, CrossOrigin {
99    // Direct parent: HTMLElement
100
101    /**
102     * @return string
103     */
104    public function getSrc(): string;
105
106    /**
107     * @param string $val
108     */
109    public function setSrc( string $val ): void;
110
111    /**
112     * @return string
113     */
114    public function getCurrentSrc(): string;
115
116    /** @var int */
117    public const NETWORK_EMPTY = 0;
118
119    /** @var int */
120    public const NETWORK_IDLE = 1;
121
122    /** @var int */
123    public const NETWORK_LOADING = 2;
124
125    /** @var int */
126    public const NETWORK_NO_SOURCE = 3;
127
128    /**
129     * @return int
130     */
131    public function getNetworkState(): int;
132
133    /**
134     * @return string
135     */
136    public function getPreload(): string;
137
138    /**
139     * @param string $val
140     */
141    public function setPreload( string $val ): void;
142
143    /**
144     * @return TimeRanges
145     */
146    public function getBuffered();
147
148    /**
149     * @return void
150     */
151    public function load(): void;
152
153    /** @var int */
154    public const HAVE_NOTHING = 0;
155
156    /** @var int */
157    public const HAVE_METADATA = 1;
158
159    /** @var int */
160    public const HAVE_CURRENT_DATA = 2;
161
162    /** @var int */
163    public const HAVE_FUTURE_DATA = 3;
164
165    /** @var int */
166    public const HAVE_ENOUGH_DATA = 4;
167
168    /**
169     * @return int
170     */
171    public function getReadyState(): int;
172
173    /**
174     * @return bool
175     */
176    public function getSeeking(): bool;
177
178    /**
179     * @return float
180     */
181    public function getCurrentTime(): float;
182
183    /**
184     * @param float $val
185     */
186    public function setCurrentTime( float $val ): void;
187
188    /**
189     * @return float
190     */
191    public function getDuration(): float;
192
193    /**
194     * @return bool
195     */
196    public function getPaused(): bool;
197
198    /**
199     * @return float
200     */
201    public function getDefaultPlaybackRate(): float;
202
203    /**
204     * @param float $val
205     */
206    public function setDefaultPlaybackRate( float $val ): void;
207
208    /**
209     * @return float
210     */
211    public function getPlaybackRate(): float;
212
213    /**
214     * @param float $val
215     */
216    public function setPlaybackRate( float $val ): void;
217
218    /**
219     * @return TimeRanges
220     */
221    public function getPlayed();
222
223    /**
224     * @return TimeRanges
225     */
226    public function getSeekable();
227
228    /**
229     * @return bool
230     */
231    public function getEnded(): bool;
232
233    /**
234     * @return bool
235     */
236    public function getAutoplay(): bool;
237
238    /**
239     * @param bool $val
240     */
241    public function setAutoplay( bool $val ): void;
242
243    /**
244     * @return bool
245     */
246    public function getLoop(): bool;
247
248    /**
249     * @param bool $val
250     */
251    public function setLoop( bool $val ): void;
252
253    /**
254     * @return void
255     */
256    public function pause(): void;
257
258    /**
259     * @return bool
260     */
261    public function getControls(): bool;
262
263    /**
264     * @param bool $val
265     */
266    public function setControls( bool $val ): void;
267
268    /**
269     * @return float
270     */
271    public function getVolume(): float;
272
273    /**
274     * @param float $val
275     */
276    public function setVolume( float $val ): void;
277
278    /**
279     * @return bool
280     */
281    public function getMuted(): bool;
282
283    /**
284     * @param bool $val
285     */
286    public function setMuted( bool $val ): void;
287
288    /**
289     * @return bool
290     */
291    public function getDefaultMuted(): bool;
292
293    /**
294     * @param bool $val
295     */
296    public function setDefaultMuted( bool $val ): void;
297
298    /**
299     * @return AudioTrackList
300     */
301    public function getAudioTracks();
302
303    /**
304     * @return VideoTrackList
305     */
306    public function getVideoTracks();
307
308    /**
309     * @return TextTrackList
310     */
311    public function getTextTracks();
312
313}