HTML Video

Play Video in HTML Page

You can add audio or video to your html page. Either you can add video from or you can add you own video by uploading the same to your own web server. But it is a bit tricky to show videos in your web page, and it is a little complicated to make it works in all browser.

Browser Supported Video Formats:

File Format  
.swf or .flv Flash  
.mov QuickTime  
.rm or .ram Real Video  
.avi AVI  
.wmv WMV  
.mpg or .mpeg MPEG  
.mp4 Mpeg-4  

Play Flash File in HTML Page

<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" 
id="obj1" border="0" width="160" height="160">
<param name="movie" value="myfile.swf">
<param name="quality" value="High">
<param name="wmode" value="transparent">
<embed src="myfile.swf" 
name="obj1" width="160" height="160" 
quality="High" wmode="transparent"></object>

Play QuickTime in HTML Page

<embed src="" width="320" height="252" 
autoplay="true" controller="true" loop="false" 

Play RealVideo in HTML Page

<object id="id1" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" 
height="240" width="320">
<param name="controls" value="imagewindow"> <param name="autostart" value="true"> <param name="src" value="myvideo.rm"> <embed height="240" width="320" controls="imagewindow" src="myvideo.rm" type="audio/x-pn-realaudio-plugin" autostart=true> </object>

Play MPEG Video in HTML Page

<embed src="myfile.mpeg" autostart="false" />

Play Youtube Video in HTML Page

<iframe width="420" height="315" 
frameborder="0" allowfullscreen></iframe>

<object width="420" height="315">
<param name="movie" 
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src=";hl=en_US" 
type="application/x-shockwave-flash" width="420" height="315" 
allowscriptaccess="always" allowfullscreen="true"></embed>

comments powered by Disqus