LibWeb: Update media volume when creating a playback manager

This commit is contained in:
Zaggy1024 2025-10-08 00:17:01 -05:00 committed by Jelle Raaijmakers
parent 7745d9209d
commit 122f97c68d
Notes: github-actions[bot] 2025-10-28 00:31:41 +00:00

View file

@ -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;