This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html Section: http://www.whatwg.org/specs/web-apps/current-work/#handling-first-frame-available Comment: canplay event is fired long before one can play in any meaningful way Posted from: 81.234.240.242 by philip@foolip.org
The canplay event is fired as readyState changes from HAVE_CURRENT_DATA to HAVE_FUTURE_DATA, that is when 2 frames worth of data has been buffered. Scripts can't actually use this event to determine when it would be appropriate to play, as playing just one frame and pausing is not helpful. When waiting for the network, the behavior one wants is that say 10 seconds of data is buffered before starting playback. Single frames and tiny burst of audio is not useful. My preferred solution to the problem would be to redefine HAVE_FUTURE_DATA to mean that something more than 1 frame ahead is available. Possible UA-defined, but something like 5-10 seconds at least.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Rejected Change Description: no spec change Rationale: The name of the event is poor, but it is not useless: it's the time at which you can enable "frame forward" UI. I'm open to adding a separate event that means "you can now play more than N seconds of content", but I'm not sure what N would be useful that is less than the N for canplaythrough.
mass-moved component to LC1