mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
LibWeb: Implement the AudioTrack and AudioTrackList interfaces
These are used to own and manage the playing of audio data.
This commit is contained in:
parent
a34e369252
commit
c89fd6dff0
12 changed files with 455 additions and 0 deletions
15
Userland/Libraries/LibWeb/HTML/AudioTrackList.idl
Normal file
15
Userland/Libraries/LibWeb/HTML/AudioTrackList.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
#import <DOM/EventHandler.idl>
|
||||
#import <DOM/EventTarget.idl>
|
||||
#import <HTML/AudioTrack.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/media.html#audiotracklist
|
||||
[Exposed=Window]
|
||||
interface AudioTrackList : EventTarget {
|
||||
readonly attribute unsigned long length;
|
||||
getter AudioTrack (unsigned long index);
|
||||
AudioTrack? getTrackById(DOMString id);
|
||||
|
||||
attribute EventHandler onchange;
|
||||
attribute EventHandler onaddtrack;
|
||||
attribute EventHandler onremovetrack;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue