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:
parent
3f1badf9b2
commit
460e1bd072
6 changed files with 92 additions and 0 deletions
16
Userland/Libraries/LibWeb/HTML/TrackEvent.idl
Normal file
16
Userland/Libraries/LibWeb/HTML/TrackEvent.idl
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue