mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Implement HTMLMediaElement's duration attribute
This commit is contained in:
parent
5f9fc5aedc
commit
e10e041882
3 changed files with 49 additions and 8 deletions
|
@ -18,16 +18,18 @@ interface HTMLMediaElement : HTMLElement {
|
|||
const unsigned short NETWORK_LOADING = 2;
|
||||
const unsigned short NETWORK_NO_SOURCE = 3;
|
||||
readonly attribute unsigned short networkState;
|
||||
undefined load();
|
||||
CanPlayTypeResult canPlayType(DOMString type);
|
||||
|
||||
// playback state
|
||||
readonly attribute unrestricted double duration;
|
||||
[Reflect, CEReactions] attribute boolean autoplay;
|
||||
[Reflect, CEReactions] attribute boolean loop;
|
||||
|
||||
[Reflect, CEReactions] attribute boolean controls;
|
||||
|
||||
CanPlayTypeResult canPlayType(DOMString type);
|
||||
undefined load();
|
||||
undefined pause();
|
||||
|
||||
// controls
|
||||
[Reflect, CEReactions] attribute boolean controls;
|
||||
|
||||
// tracks
|
||||
[SameObject] readonly attribute VideoTrackList videoTracks;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue