html - 如何在 firefox 的 html 页面上显示视频

标签 html firefox video object-tag

我确实看了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>

请注意,我不允许使用任何第三方工具(如 Flash)显示视频。

有人可以告诉我我错过了什么吗?或者更好的解决方案……独立于浏览器的东西……:)

最佳答案

看来 firefox 需要一个插件,检查这个测试页:

http://plugindoc.mozdev.org/testpages/wmp11.html

关于html - 如何在 firefox 的 html 页面上显示视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2689839/

相关文章:

javascript - 如何在时间进度条中放置时间显示框

firefox - 如何使用 Xvfb 在 Firefox 中运行 Karma?

firefox - 使浏览器自动重新加载用户脚本

html - 图像的可点击区域 - 即使屏幕改变大小 html

javascript - 引导模式未激活

javascript - 尝试在元素出现时执行单击功能

html - 绝对位置,底部 0,firefox 不工作

ios - 单击时在 JW Player 中播放的 YouTube 视频的简单库

Javascript onend 正在检测视频的结尾

css - HTML5 视频未加载