mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Implement HTMLMediaElement's duration attribute
This commit is contained in:
committed by
Linus Groh
parent
5f9fc5aedc
commit
e10e041882
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user