mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
LibWeb: Begin implementing media resource seeking
This commit is contained in:
committed by
Linus Groh
parent
f8f35fdaad
commit
5a98a5529f
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user