<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 26, 2010, at 1:40 PM, Rik Sagar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">What is the prescribed behavior with "autoplay"?  When should the UA start play?  <br> - "canplay" <br> - "canplaythrough" <br> - "HAVE_FUTURE_DATA"<br> - "HAVE_ENOUGH_DATA"<br>

<br></blockquote><div>  It is all in the spec: <a href="http://www.w3.org/TR/html5/video.html#dom-media-have_enough_data">http://www.w3.org/TR/html5/video.html#dom-media-have_enough_data</a></div><div><br></div><div><i>HAVE_ENOUGH_DATA (numeric value 4)<br>All the conditions described for the HAVE_FUTURE_DATA state are met, and, in addition, the user agent estimates that data is being fetched at a rate where the current playback position, if it were to advance at the rate given by the defaultPlaybackRate attribute, would not overtake the available data before playback reaches the end of the media resource.<br></i><br></div><div>and</div><div><br></div><div><i>If the new ready state is HAVE_ENOUGH_DATA ... if the autoplaying flag is true, and the paused attribute is true, and the media element has an autoplay attribute specified ... then the user agent may also set the paused attribute to false, queue a task to fire a simple event named play, and queue a task to fire a simple event named playing.</i></div><div><i><br>User agents are not required to autoplay, and it is suggested that user agents honor user preferences on the matter. Authors are urged to use the autoplay attribute rather than using script to force the video to play, so as to allow the user to override the behavior if so desired.<br><br>In any case, the user agent must finally queue a task to fire a simple event named canplaythrough.<br></i><br>eric</div><div><br></div></div></body></html>