mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Set AudioTrack and VideoTrack fields according to spec
The two classes now inherit from a common base MediaTrackBase, to deduplicate the attributes that are shared between the two. The integer ID from the container is used for each track's id attribute. The kind attribute is set to "main" or "translation" according to: https://dev.w3.org/html5/html-sourcing-inband-tracks/ The label attribute is set to the human-readable name of the track, if one is present. The language attribute is set to a BCP 47 language tag, if one can be parsed successfully.
This commit is contained in:
parent
29ab9c5fd5
commit
3d0b8cc30c
Notes:
github-actions[bot]
2025-10-28 00:34:44 +00:00
Author: https://github.com/Zaggy1024
Commit: 3d0b8cc30c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6410
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
8 changed files with 148 additions and 87 deletions
|
|
@ -568,6 +568,7 @@ set(SOURCES
|
|||
HTML/ListOfAvailableImages.cpp
|
||||
HTML/Location.cpp
|
||||
HTML/MediaError.cpp
|
||||
HTML/MediaTrackBase.cpp
|
||||
HTML/MessageChannel.cpp
|
||||
HTML/MessageEvent.cpp
|
||||
HTML/MessagePort.cpp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue