IE9、IE10使用关灯功能的问题

使用POLYV默认的播放器代码时,在IE9、IE10使用POLYV播放器的关灯功能,会导致整个页面变黑。这个是由于播放器代码中,wmode参数的值默认为transparent,导致播放器的flash层被IE9、IE10的html层挡住了,导致看不到播放器。

HTML代码中,将wmode的值设置为window。

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="490" id="polyvplayere2e84a7383b77b678a652d6d796d0a99_e"><PARAM NAME=movie VALUE="http://player.polyv.net/videos/player.swf"><param name="allowscriptaccess" value="always"><param name="wmode" value="Window"><param name="flashvars" value="vid=e2e84a7383b77b678a652d6d796d0a99_e" /><param name="allowFullScreen" value="true" /><EMBED src="http://player.polyv.net/videos/player.swf" width="600" height="490"  TYPE="application/x-shockwave-flash" allowscriptaccess="always" wmode="Window" name="polyvplayere2e84a7383b77b678a652d6d796d0a99_e" allowFullScreen="true" flashvars="vid=e2e84a7383b77b678a652d6d796d0a99_e"/></EMBED></OBJECT>

多终端代码中,在player的初始化代码块的最后增加多一行:'flashParams':{'wmode':'window','allowScriptAccess':'always','allowFullScreen':'true'}。

<script src='http://static.polyv.net/file/polyvplayer_v2.0.min.js'></script>
<div id='plv_e2e84a7383b77b678a652d6d796d0a99_e'></div>
<script>
var player = polyvObject('#plv_e2e84a7383b77b678a652d6d796d0a99_e').videoPlayer({
    'width':'600',
    'height':'490',
    'vid' : 'e2e84a7383b77b678a652d6d796d0a99_e',
    'flashParams':{'wmode':'window','allowScriptAccess':'always','allowFullScreen':'true'}
});
</script>
以上内容是否对您有帮助?根本没有帮助文档较差文档一般文档不错文档很好
Loading...