<video src= "video.mp4" controls> </video>
You can even build your own customized controls:
<video src= "video.mp4" autoplay> </video>
This will make your video to autoplay
<video src= "video.mp4" preload> </video>
This will download the video but not play it. Preload should be preferred only if the video is the sole attention of the website as this option can effect the speed of the website.
To make sure browsers do not preload the video:
<video src= "video.mp4" preload = "none"> </video>
If you want to make the video play again and again, that is play as a loop:
<video src= "video.mp4" loop> </video>
And if the video fails to load, just put posters attribute so that an image will be displayed:
<video src= "video.mp4" poster= "alternate.jpg"> </video>
( poster attribute usually causes problems in iOS 3 version)
No comments:
Post a Comment