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
commit e10e041882
Notes: sideshowbarker 2024-07-17 05:03:11 +09:00
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;
};