mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Implement the HTMLMediaElement volume and muted IDL attributes
This commit is contained in:
parent
d3b8d88598
commit
b9e4dc2cb7
Notes:
sideshowbarker
2024-07-19 01:59:31 +09:00
Author: https://github.com/trflynn89
Commit: b9e4dc2cb7
Pull-request: https://github.com/SerenityOS/serenity/pull/19409
7 changed files with 101 additions and 0 deletions
|
@ -100,6 +100,11 @@ void AudioTrack::seek(double position, MediaSeekMode seek_mode)
|
|||
m_loader->seek(position).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
void AudioTrack::update_volume()
|
||||
{
|
||||
m_audio_plugin->set_volume(m_media_element->effective_media_volume());
|
||||
}
|
||||
|
||||
void AudioTrack::visit_edges(Cell::Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue