Bug 314643

Summary: [GStreamer][MSE] ended event may not always fire when the duration change
Product: WebKit Reporter: Philippe Normand <philn>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: jean-yves.avenard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 314628    
Bug Blocks:    

Philippe Normand
Reported 2026-05-12 08:52:27 PDT
+++ This bug was initially created as a clone of Bug #314628 +++ Consider the following. a MediaSource is created with data from [0-5][6-10] playback stalls at currentTime = 5. Now the player removes data from [6-10] and set the duration to 5. The ended event will never fire as timeChanged would only be called at the completion of the seek handled by https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLMediaElement.cpp#6060-6061 ``` if (now > dur) seekInternal(dur); ``` this causes the intermittent timeout in the test imported/w3c/web-platform-tests/media-source/mediasource-duration.html
Attachments
Philippe Normand
Comment 1 2026-05-13 01:11:58 PDT
Note You need to log in before you can comment on or make changes to this bug.