WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
219490
[GStreamer] Seek on loadedmetadata is ignored
https://bugs.webkit.org/show_bug.cgi?id=219490
Summary
[GStreamer] Seek on loadedmetadata is ignored
Alicia Boya García
Reported
2020-12-03 08:04:12 PST
I was writing a test for an unrelated bug when I found this. const eventWatcher = new EventWatcher(test, video, ["loadedmetadata", "seeked", "ended"]); await eventWatcher.wait_for("loadedmetadata"); assert_equals(video.videoWidth, 320, "width when the video is loaded"); assert_equals(video.videoHeight, 240, "height when the video is loaded"); video.currentTime = 5; video.play(); await eventWatcher.wait_for(["seeked", "ended"]); You would expect the video to start playing on t=5, but it starts on t=0 instead. That's a bug.
Attachments
Add attachment
proposed patch, testcase, etc.
Alicia Boya García
Comment 1
2020-12-03 08:05:00 PST
This is in regular playback from an HTTP resource (not MSE).
Fernando Jiménez Moreno
Comment 2
2021-02-15 10:26:22 PST
I am not sure if this is exactly what you meant, but a test like this works for me: ``` const video = document.querySelector('video'); video.addEventListener('loadedmetadata', event => { console.log('onloadedmetadata received'); console.log('Seeking to t=15'); video.currentTime = 15; video.play(); }); video.addEventListener('seeked', event => { console.log('Seek received'); }); ``` The logs are properly shown and video starts at t=15 (if autoplay is allowed)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug