Tuesday, May 31, 2011

controls, autoplay and loop for HTML5 embedded video

The controls attribute is a boolean attribute. If present, it indicates that the author has not provided a scripted controller and would like the user agent to provide its own set of controls.

The autoplay attribute is a boolean attribute. When present, the user agent (as described in the algorithm described herein) will automatically begin playback of the media resource as soon as it can do so without stopping.

The loop attribute is a boolean attribute that, if specified, indicates that the media element is to seek back to the start of the media resource upon reaching the end.

example:
<video src="http://people.opera.com/shwetankd/webm/sunflower.webm"
controls autoplay loop>
<p>Your browser doesn't support WebM format.</p>
</video>

No comments:

Post a Comment