如何在firefox的html页面上显示视频
我确实看了这个问题,但提问者没有得到任何回答。不过,我还是在尝试 我想在html页面上嵌入一个视频文件。该代码在IE上运行良好,但在firefox上不起作用 守则:如何在firefox的html页面上显示视频,html,firefox,video,object-tag,Html,Firefox,Video,Object Tag,我确实看了这个问题,但提问者没有得到任何回答。不过,我还是在尝试 我想在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
<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>
请注意,我不允许使用任何第三方工具(如flash)显示视频
有人能告诉我我错过了什么吗?或者更好的解决方案..一些独立于浏览器的东西…:) 这可能是.wmv扩展名的问题,它是微软的专有格式。 您应该将视频转换为更“网络友好”的格式,并使用此代码确保跨浏览器/html版本的兼容性:
看起来firefox需要一个插件,请检查此测试页面:
Fire fox仅显示.ogg和WebM
www.w3schools.com/tags/tag_video.asp也许您可以-依赖浏览器-使用HTML5和视频标签: