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:
parent
0c4b28faf3
commit
ff1606ffaf
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