【问题标题】:embedding ooyala video without flashvars not working in firefox嵌入没有 flashvars 的 ooyala 视频在 Firefox 中不起作用
【发布时间】:2013-09-21 11:01:25
【问题描述】:

我正在尝试使用 emebed 标签在网页上嵌入 ooyala 视频。通过仅提供 src 它在 chrome 中运行良好,在 IE 中令人惊讶,但如果在 FF 中失败。

<embed src="http://player.ooyala.com/player.swf?embedCode=c3ajR4MjpyGe-djJaAxM6wa_SPQPijH7&amp;version=2" type="application/x-shockwave-flash" 
/>

对于 firefox,我还需要在 embed 标记中提供 flashvars 属性,否则它会卡在“加载”中。

<embed src="http://player.ooyala.com/player.swf?embedCode=c3ajR4MjpyGe-djJaAxM6wa_SPQPijH7&amp;version=2" type="application/x-shockwave-flash" flashvars="&amp;embedCode=c3ajR4MjpyGe-djJaAxM6wa_SPQPijH7&amp;videoPcode=FiYm06Tu_hQLSGqTeVTwSS1L4vV7" 
/>

这里是 fiddle 演示问题。在 ff 中打开它,你会看到第二个视频永远卡在加载中,而视频在 chrome 和 IE 中都可以正常播放。

【问题讨论】:

    标签: html firefox embed video-embedding ooyala


    【解决方案1】:

    你可以使用&lt;iframe&gt;&lt;/iframe&gt;

    <iframe  id="Iframe" width="640" height="360" src="http://player.ooyala.com/player.swf?embedCode=c3ajR4MjpyGe-djJaAxM6wa_SPQPijH7&amp;version=2" frameborder="0"></iframe>
    

    支持所有浏览器

    【讨论】:

    • 啊,但遗憾的是,我正在使用生成上述嵌入代码的 ckeditor 插件,我只是将 url 和 flashvars 参数传递给它。请参阅此票以获取更多信息dev.ckeditor.com/ticket/10758
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-23
    • 1970-01-01
    相关资源
    最近更新 更多