HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Embed Codes for Video Media

vrijvlindervrijvlinder Papillon-Sauvage MVP
edited May 2014 in Tutorials

If you want to embed video in your site here are some codes that can help you.

For mp4 .mov 

    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
        codebase="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="160" HEIGHT="136" >
        <param name="src" VALUE="videofilename_mp4.mov" >
        <param name="autoplay" VALUE="true" >
        <embed src="videofilename_mp4.mov" TYPE="image/x-macpaint" 
        pluginspage="http://www.apple.com/quicktime/download" WIDTH="160" HEIGHT="136" AUTOPLAY="true"></embed>
        </object>

For Windows Media  .wmv

        <object id="MediaPlayer" width="192" height="190" type="video/x-ms-asf">
        <param name="FileName"value="videofilename.wmv">
        <param name="autostart" value="false">
        <param name="ShowControls" value="true">
        <param name="ShowStatusBar" value="false">
        <param name="ShowDisplay" value="false">
        <embed type="application/x-mplayer2" src="videofilename.wmv" 
        width="192" height="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0" />
        </object>

For Flash  .swf .flv 

            <object width="550" height="400">
               <param name="movie" value="somefilename.swf">
               <embed src="somefilename.swf" width="550" height="400">
               </embed>
            </object>

  For AVI          
           <object  data="="/files/videos/video.avi" type="video/avi"  />
            <embed  src="/files/videos/video.avi" />

Comments

Sign In or Register to comment.