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