mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: List supported media types publicly for HTMLMediaElement
This commit is contained in:
parent
8ebf2c3007
commit
202bf901d7
Notes:
github-actions[bot]
2024-12-25 11:32:53 +00:00
Author: https://github.com/ADKaster
Commit: 202bf901d7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2980
2 changed files with 22 additions and 11 deletions
|
@ -58,6 +58,20 @@ public:
|
|||
|
||||
[[nodiscard]] GC::Ref<TimeRanges> buffered() const;
|
||||
|
||||
static inline constexpr auto supported_video_subtypes = Array {
|
||||
"webm"sv,
|
||||
"mp4"sv,
|
||||
"mpeg"sv,
|
||||
"ogg"sv,
|
||||
};
|
||||
static inline constexpr auto supported_audio_subtypes = Array {
|
||||
"flac"sv,
|
||||
"mp3"sv,
|
||||
"mpeg"sv,
|
||||
"ogg"sv,
|
||||
"wav"sv,
|
||||
"webm"sv,
|
||||
};
|
||||
Bindings::CanPlayTypeResult can_play_type(StringView type) const;
|
||||
|
||||
enum class ReadyState : u16 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue