1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibWeb: Implement TrackEvent for media events

This commit is contained in:
Timothy Flynn 2023-04-04 09:28:59 -04:00 committed by Linus Groh
parent 3f1badf9b2
commit 460e1bd072
6 changed files with 92 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#import <DOM/Event.idl>
#import <HTML/VideoTrack.idl>
// https://html.spec.whatwg.org/multipage/media.html#trackevent
[Exposed=Window, UseNewAKString]
interface TrackEvent : Event {
constructor(DOMString type, optional TrackEventInit eventInitDict = {});
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
readonly attribute VideoTrack? track;
};
dictionary TrackEventInit : EventInit {
// FIXME: Should be: (VideoTrack or AudioTrack or TextTrack)?
VideoTrack? track = null;
};