Bug 227169

Summary: [GStreamer] Seeks on `loadstart` are ignored
Product: WebKit Reporter: Alicia Boya García <aboya>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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}