我确实看了this个问题,但提问者没有得到任何答复。不过,我还是试一试。
我想在html页面上嵌入一个视频文件。代码在IE上工作正常但在firefox上不起作用。
代码:
<object id="WMPlay" width="640" height="480" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,70" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="URL" value="XYZ.wma" />
<param name="AutoStart" value="false" />
<embed name="WMplay" width="640" height="480" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
src="XYZ.wma" allowchangedisplaysize="True" showcontrols="1"
autostart="false" showdisplay="1" showstatusbar="1">
</embed>
</object>
请注意,我不允许使用任何第三方工具(如闪光灯)显示视频。
有人能说出我错过了什么吗?或者更好的解决方案......与浏览器无关的东西... :)
答案 0 :(得分:1)
这可能是.wmv扩展的一个问题,这是一种Microsoft专有格式。 您应该将视频转换为更“网络友好”的格式,并使用此代码确保跨浏览器/ html版本的兼容性: http://camendesign.com/code/video_for_everybody
答案 1 :(得分:1)
看起来firefox需要一个插件,请查看此测试页:
答案 2 :(得分:1)
Fire fox只显示.ogg和WebM ......
www.w3schools.com/tags/tag_video.asp