Embed Video with Windows Media Player on your Website Print

  • 8

The following code embedds a simple Windows media player to your web page to play video files in.

<!-- Content Starts -->
<object
  id="MediaPlayer" width="400" height="300"
  classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
 codebase="
http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
 standby="Loading Microsoft Windows Media Player components..."
 type="application/x-oleobject">
 <param name="FileName" value= "
http://www.yourdomain.com/file/location.wmv" >
  
 <param name="AnimationatStart" value="true">
 <param name="TransparentatStart" value="false">
 <param name="AutoStart" value="true">
 <param name="ShowControls" value="1">
 <param name="ShowStatusBar" value="1">
  <param name="autoSize" value="false">
  <embed type="application/x-mplayer2"
   pluginspage="
http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
  src= "
http://www.yourdomain.com/file/location.wmv"  name=MediaPlayer
  showcontrols=1 width=360 height=180>
 </embed>
</object>

You need to change the http://www.yourdomain.com/file/location.wmv to the location of your video file


Was dit antwoord nuttig ?

« Terug

Powered by WHMCompleteSolution