/ Published in: HTML

This example is a basic design structure for loading multiple video and audio formats for universal work of media content on your page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<video poster="images/preview.png" width="800" height="600" controls="controls" preload="none"> <source src="media/my_video.mp4" type="video/mp4"></source> <source src="media/my_video.webm" type="video/webm"></source> <source src="media/my_video.ogg" type="video/ogg"></source> </video> <audio controls="controls" preload="none"> <source src="audio/my_music.ogg" type="audio/ogg"> <source src="audio/my_music.mp3" type="audio/mpeg"> </audio>
URL: http://www.apphp.com/index.php?snippet=html-5-media-code
Comments
