嵌入ooyala视频没有flashvars不在Firefox中工作

时间:2013-09-17 06:15:28

标签: html firefox embed video-embedding ooyala

我正在尝试使用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属性,否则它会卡在'loading'上。

<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中都可以正常播放。

1 个答案:

答案 0 :(得分:2)

您可以使用<iframe></iframe>

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

它支持所有浏览器