Return to Snippet

Revision: 62765
at March 11, 2013 17:43 by apphp-snippets


Initial Code
<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>

Initial URL
http://www.apphp.com/index.php?snippet=html-5-media-code

Initial Description
This example is a basic design structure for loading multiple video and audio formats for universal work of media content on your page.

Initial Title
Media Code in HTML5

Initial Tags
html, code

Initial Language
HTML