Bug 271679

Summary: HTMLMediaElement.played TimeRanges missing the last range on ended
Product: WebKit Reporter: Jason McLaughlin <siemova>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, eric.carlson, jean-yves.avenard, jer.noble, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: All   
OS: All   

Jason McLaughlin
Reported 2024-03-25 15:29:23 PDT
Overview: When referencing the `played` property/method of a `video` in a handler for its `ended` event, the returned `TimeRanges` object does not include the last time range watched. Steps to Reproduce: 1) Embed a `video` and register a handler for its `ended` event. 2) Play the video. Skip some portion in the middle, then allow the video to end. 3) In the `ended` event handler, reference `video.played` and observe the missing time range. Actual Results: On `ended`, the `TimeRanges` object returned by `video.played` does not include the last time range. Expected Results: On `ended`, the `TimeRanges` object returned by `video.played` should include the last time range, just as in Blink and Gecko.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-04-01 15:30:15 PDT
Ahmad Saleem
Comment 2 2024-04-04 05:19:12 PDT
@Jason - do you have test case for this to reproduce reliably and also if it was working in previous WebKit / Safari releases?
Jean-Yves Avenard [:jya]
Comment 3 2024-04-11 23:21:50 PDT
Jean-Yves Avenard [:jya]
Comment 4 2024-04-17 19:36:26 PDT
EWS
Comment 5 2024-04-18 15:36:36 PDT
Committed 277706@main (8338d4d31d30): <https://commits.webkit.org/277706@main> Reviewed commits have been landed. Closing PR #27431 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.