[Webkit-unassigned] [Bug 287435] Safari can calculate incorrect video duration
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 12 06:40:23 PST 2025
https://bugs.webkit.org/show_bug.cgi?id=287435
--- Comment #3 from Rob Smith <rob.smith at awayteam.co.uk> ---
@ahmad Thanks for confirming this.
According to the HTML spec, HTMLMediaElement.duration is defined as follows:
1. "The duration attribute must return the time of the end of the media resource, in seconds, on the media timeline." https://html.spec.whatwg.org/multipage/media.html#dom-media-duration
2. "The term media resource is used to refer to the complete set of media data, e.g. the complete video file, or complete audio file." https://html.spec.whatwg.org/multipage/media.html#media-resource
In this example, the base media file duration is 5.312 and this should be reported by HTMLMediaElement.duration. 5.280 is the duration of the AVC video stream only and should not be reported as the HTMLMediaElement.duration.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20250212/6d2b12a3/attachment.htm>
More information about the webkit-unassigned
mailing list