如何在HTML中嵌入Windows Media Player(WMV)电影?

时间:2011-04-20 15:20:28

标签: html cross-browser wmv

我正在关注http://www.alistapart.com/articles/byebyeembed/中的代码,它在Firex 4.0中运行正常,但它在IE9中根本不起作用。我甚至不能通过按下播放按钮来播放电影。

  <object id='MediaPlayer1' width="320" height="285" classid='CLSID:22d6f312-b ... >

  <param name='fileName' value="src.wmv">

  <param name='animationatStart' value='true'>

  <param name='transparentatStart' value='true'>

  <param name='autoStart' value="false">

  <param name='showControls' value="true">

  <param name='loop' value="true">

  <param name="wmode" value="transparent">

  <embed type='application/x-mplayer2'

    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'

    id='MediaPlayer2' name='mediaPlayer' displaysize='4' autosize='-1'

    bgcolor='darkblue' showcontrols="true" showtracker='-1'

    showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="522" height="350"

    src="src.wmv" autostart="true" designtimesp='5311' loop="true" )

  </embed>

  </object>

1 个答案:

答案 0 :(得分:3)

这肯定会有你的答案:)我打算在这里为你打字,但它已经在这里了!

Embedding Windows Media Player for all browsers