LibWeb: Implement seeking for audio tracks

This commit is contained in:
Timothy Flynn 2023-06-14 10:12:46 -04:00 committed by Andreas Kling
parent 0c4b28faf3
commit ff1606ffaf
Notes: sideshowbarker 2024-07-16 18:26:47 +09:00
4 changed files with 20 additions and 0 deletions

View file

@ -56,4 +56,11 @@ void HTMLAudioElement::on_paused()
});
}
void HTMLAudioElement::on_seek(double position, MediaSeekMode seek_mode)
{
audio_tracks()->for_each_enabled_track([&](auto& audio_track) {
audio_track.seek(position, seek_mode);
});
}
}