mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Update media volume when creating a playback manager
This commit is contained in:
parent
7745d9209d
commit
122f97c68d
Notes:
github-actions[bot]
2025-10-28 00:31:41 +00:00
Author: https://github.com/Zaggy1024
Commit: 122f97c68d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6410
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 0 deletions
|
|
@ -1214,6 +1214,8 @@ WebIDL::ExceptionOr<void> HTMLMediaElement::process_media_data(Function<void(Str
|
|||
weak_self->on_playback_manager_state_change();
|
||||
};
|
||||
|
||||
update_volume();
|
||||
|
||||
// -> If the media resource is found to have an audio track
|
||||
auto preferred_audio_track = m_playback_manager->preferred_audio_track();
|
||||
auto has_enabled_preferred_audio_track = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue