您好我以前使用jwplayer jquery插件播放视频。它在Mozilla浏览器中运行良好。 当我在Chrome中播放相同的视频时,我会听到双重声音。我刷新浏览器并清除现金和饼干。
是否有针对Chrome浏览器的解决方案
<script type="text/javascript" language="javascript">
//<![CDATA[
//setpopuptime = setpopuptime + 15000;//15 sec
var flashvars = { file:encodeURIComponent(c('<?php echo base64_encode($audio_full_path); ?>')),autostart:'true' };
var params = { allowfullscreen:'false', allowscriptaccess:'always' };
var attributes = { id:'player1', name:'player1' };
swfobject.embedSWF('<?php echo ROOT.$this->webroot; ?>jwplayer/player.swf','container1','1024','600','9.0.115','false',flashvars, params, attributes, flashLoaded);
function flashLoaded(e) {
jwplayer(e.ref).onPlay(function() {
setTimeout(function(){
jwplayer(e.ref).pause();
window.parent.checkmefirst(); }, setpopuptime);
});
}
//]]>
</script>