mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:15:07 +00:00
LibWeb: Implement the HTMLMediaElement volume and muted IDL attributes
This commit is contained in:
parent
d3b8d88598
commit
b9e4dc2cb7
7 changed files with 101 additions and 0 deletions
|
@ -63,4 +63,11 @@ void HTMLAudioElement::on_seek(double position, MediaSeekMode seek_mode)
|
|||
});
|
||||
}
|
||||
|
||||
void HTMLAudioElement::on_volume_change()
|
||||
{
|
||||
audio_tracks()->for_each_enabled_track([&](auto& audio_track) {
|
||||
audio_track.update_volume();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue