多终端代码设置播放器flashParams

在使用JavaScript情况下,如何给播放器设置参数?

例如拷贝播放器代码

<script src='//player.polyv.net/script/polyvplayer.min.js'></script>
<div id='plv_e2e84a73838206ff3b459cd5f05dbaaa_e'></div>
<script>
var player = polyvObject('#plv_e2e84a73838206ff3b459cd5f05dbaaa_e').videoPlayer({
    'width':'600',
    'height':'466',
    'vid' : 'e2e84a73838206ff3b459cd5f05dbaaa_e'
});
</script>

需要给播放器设置flashParams参数,那么在播放器代码后面加一段即可(注意player最后一行的参数代码末尾不能有逗号,否则会出现IE加载不出播放器的情况):

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