1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibWeb: Begin implementing media resource seeking

This commit is contained in:
Timothy Flynn 2023-04-11 18:37:00 -04:00 committed by Linus Groh
parent f8f35fdaad
commit 5a98a5529f
Notes: sideshowbarker 2024-07-17 02:28:18 +09:00
8 changed files with 138 additions and 8 deletions

View file

@ -101,4 +101,10 @@ void HTMLVideoElement::on_paused()
m_video_track->pause_video({});
}
void HTMLVideoElement::on_seek(double position, MediaSeekMode seek_mode)
{
if (m_video_track)
m_video_track->seek(Time::from_milliseconds(position * 1000.0), seek_mode);
}
}