1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +00:00

LibWeb: Implement VideoTrack and VideoTrackList

This implements the IDL for these types and some event handling around
them.
This commit is contained in:
Timothy Flynn 2023-04-04 09:26:02 -04:00 committed by Linus Groh
parent 9f8da9798a
commit 3f1badf9b2
10 changed files with 367 additions and 1 deletions

View file

@ -0,0 +1,16 @@
#import <DOM/EventHandler.idl>
#import <DOM/EventTarget.idl>
#import <HTML/VideoTrack.idl>
// https://html.spec.whatwg.org/multipage/media.html#videotracklist
[Exposed=Window]
interface VideoTrackList : EventTarget {
readonly attribute unsigned long length;
getter VideoTrack (unsigned long index);
VideoTrack? getTrackById(DOMString id);
readonly attribute long selectedIndex;
attribute EventHandler onchange;
attribute EventHandler onaddtrack;
attribute EventHandler onremovetrack;
};