1
Fork 0
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:
Timothy Flynn 2023-04-04 15:12:40 -04:00 committed by Linus Groh
parent 5f9fc5aedc
commit e10e041882
3 changed files with 49 additions and 8 deletions

View file

@ -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;
};