This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28929 - Setting video.currentTime (seeking) should synchronously update the attribute's value
Summary: Setting video.currentTime (seeking) should synchronously update the attribute...
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: Unsorted
Assignee: Philip Jägenstedt
QA Contact: contributor
URL: https://html.spec.whatwg.org/#dom-med...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-09 09:37 UTC by contributor
Modified: 2019-03-29 20:50 UTC (History)
7 users (show)

See Also:


Attachments

Description contributor 2015-07-09 09:37:42 UTC
Specification: https://html.spec.whatwg.org/
Multipage: https://html.spec.whatwg.org/multipage/#dom-media-seek
Complete: https://html.spec.whatwg.org/#dom-media-seek
Referrer: https://codereview.chromium.org/1013923002/diff/140001/public/platform/WebSourceBuffer.h

Comment:
Setting video.currentTime (seeking) should synchronously update the
attribute's value

Posted from: 212.116.72.179
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2398.0 Safari/537.36 OPR/31.0.1876.0 (Edition developer)
Comment 1 Philip Jägenstedt 2015-07-09 09:43:30 UTC
There's a discrepancy between the spec and implementations that I think is unlikely to be resolved in favor of the spec.

https://html.spec.whatwg.org/#dom-media-seek returns early and the only effect that can be observed synchronously is that the seeking attribute is true.

I've tested Chromium, Firefox and IE, and all of them synchronously change the currentTime attribute:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3562

I think the spec should do the same. Either by someone reusing "official playback position" for this purpose, or by introducing a separate "seek position" or similar.

The main problem with the spec as it is is that it makes it harder to write a good UI where seeking look like it has an immediate effect, even if currentTime may be slightly adjusted when the seek has actually finished.
Comment 2 Domenic Denicola 2019-03-29 20:50:01 UTC
https://github.com/whatwg/html/issues/4477