mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
LibWeb: Implement seeking for audio tracks
This commit is contained in:
parent
0c4b28faf3
commit
ff1606ffaf
Notes:
sideshowbarker
2024-07-16 18:26:47 +09:00
Author: https://github.com/trflynn89
Commit: ff1606ffaf
Pull-request: https://github.com/SerenityOS/serenity/pull/19397
4 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue