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:
parent
9f8da9798a
commit
3f1badf9b2
10 changed files with 367 additions and 1 deletions
16
Userland/Libraries/LibWeb/HTML/VideoTrackList.idl
Normal file
16
Userland/Libraries/LibWeb/HTML/VideoTrackList.idl
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue