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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5732740/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 08:07:55  来源:igfitidea点击:

How to embed Windows Media Player ( WMV) Movie in HTML?

htmlcross-browserwmv

提问by svirk

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.

我正在关注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>

采纳答案by clamchoda

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

为所有浏览器嵌入 Windows Media Player