mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Parse and load the HTMLMediaElement's src attribute
The spec for loading a media element is quite huge. This implements just enough to parse the attribute, fetch the corresponding media object, and decode the media object (if it is a video). While doing so, this also implements most network state tracking and firing DOM events that may be observed via JavaScript.
This commit is contained in:
parent
460e1bd072
commit
e2f32e6ab3
3 changed files with 603 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/VideoTrackList.idl>
|
||||
|
||||
enum CanPlayTypeResult {
|
||||
"",
|
||||
|
@ -26,4 +27,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
CanPlayTypeResult canPlayType(DOMString type);
|
||||
undefined load();
|
||||
undefined pause();
|
||||
|
||||
// tracks
|
||||
[SameObject] readonly attribute VideoTrackList videoTracks;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue