Sunday, May 12, 2013

Html5 Video Example

Html5 Video Example

Html5 Video is very simple to embed video in the web page.

It is very simple, to embed the video in our browser we just use the video tag as shown in

below example.

The controls attribute which adds video controls like volume, play and pause....etc

source tag which will give the link to the video files.

for src attribute , we should give the path of the media files and for type attribute  will give

the media type.

you can change the width and height based on webpage look and feel.

Below you can find very simple Html5 Video example.


 <html>  
 <body>  
 <video width="111" height="111" controls>  
  Video tag does not support yoiur browser.  
  <source src="http://javademos.blogspot.com/java.mp4" type="video/mp4">  
  <source src="http://javademos.blogspot.com/java.mpeg" type="video/mpeg">  
 </video>  
 </body>  
 </html>  

0 comments:

Post a Comment

 
Disclaimer : If you find any mistakes / corrections / feedback Please let us know...This website author shall not accept liability or responsibility for any errors, mistakes or misstatements found in this website.