Bug 227169 - [GStreamer] Seeks on `loadstart` are ignored
Summary: [GStreamer] Seeks on `loadstart` are ignored
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-18 06:45 PDT by Alicia Boya García
Modified: 2021-06-18 06:45 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alicia Boya García 2021-06-18 06:45:10 PDT
Test case:

<!DOCTYPE html>
<html>
<body>
<video src="assets/media-1video-1audio.mp4" id="v" controls></video>
<script>
  v.onloadstart = () => {
    v.currentTime = 5;
  }
</script>
</body>
</html>

Expected: the poster should show t=5, and when clicking on the video it should start playing at t=5.
Actual: the poster shows t=0 and starts playing at t=0.

The multi-platform code is sending the seek, but it's getting lost somehow. It needs investigation.

CONSOLE MEDIA LOG HTMLMediaElement::seek(53011021D81494C6) {"value":5}
CONSOLE MEDIA INFO HTMLMediaElement::seekWithTolerance(53011021D81494C6) time = {"value":5}, negativeTolerance = {"value":0,"numerator":0,"denominator":1,"flags":1}, positiveTolerance = {"value":0,"numerator":0,"denominator":1,"flags":1}