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:
parent
f8f35fdaad
commit
5a98a5529f
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/trflynn89
Commit: 5a98a5529f
Pull-request: https://github.com/SerenityOS/serenity/pull/18296
Reviewed-by: https://github.com/Zaggy1024 ✅
8 changed files with 138 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue