mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibMedia+LibWeb: Prefer MatroskaDemuxer for media playback
MatroskaDemuxer supports multiple streams already, and gives us a bit more control over seeking.
This commit is contained in:
parent
0ff330c906
commit
dfe59b8a4f
Notes:
github-actions[bot]
2025-10-28 00:35:18 +00:00
Author: https://github.com/Zaggy1024
Commit: dfe59b8a4f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6410
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
3 changed files with 10 additions and 4 deletions
|
|
@ -1173,7 +1173,7 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::process_media_data(Function<void(Str
|
|||
{
|
||||
auto& realm = this->realm();
|
||||
|
||||
auto playback_manager_result = Media::PlaybackManager::try_create(make<FixedMemoryStream>(m_media_data.bytes()));
|
||||
auto playback_manager_result = Media::PlaybackManager::try_create(m_media_data.bytes());
|
||||
|
||||
// -> If the media data cannot be fetched at all, due to network errors, causing the user agent to give up trying to fetch the resource
|
||||
// -> If the media data can be fetched but is found by inspection to be in an unsupported format, or can otherwise not be rendered at all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue