1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:25:07 +00:00

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
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);
});
}
}