mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
3f1badf9b2
This implements the IDL for these types and some event handling around them.
17 lines
517 B
Plaintext
17 lines
517 B
Plaintext
#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;
|
|
};
|