如何在 HTML 中嵌入 Windows Media Player (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>
I am following the code from http://www.alistapart.com/articles/byebyeembed/ and it is working fine in Firex 4.0 but It is not working at all in IE9. I, even, cannot play the movie by pressing play button.
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这肯定会有你的答案:)我本来打算在这里为你输入它,但它已经在这里了!
为所有浏览器嵌入 Windows Media Player
This will surely have your answer :) I was going to type it out here for you, but its already here!
Embedding Windows Media Player for all browsers