我找到了这个主题,但没有明显的解决方案。flowplayer 在我的 Mac 上以 firefox、safari 或 chrome 启动时静音。这是我正在使用的代码,有人可以指出我正确的方向吗?如果感兴趣的话,它是 flowplayer 3.2.16。
<script type="text/javascript">
$(document).ready(function() {
player = flowplayer("player", "/libs/flowplayer/flowplayer.swf", {
plugins: {audio: {url: '/libs/flowplayer/flowplayer.audio.swf'},controls: {url: '/libs/flowplayer/flowplayer.controls.swf'}},
clip: {autoPlay: false, autoBuffering: true}
}).ipad();
$(".rmRating").jRating({type:'big',length:5,showRateInfo:false,decimalLength:0,rateMax:5,step: true});
$('i.rex-player').on('click', function() {
var c = {url: $(this).data('url'), coverImage: {url: "<?=$item->thumb;?>",scaling: 'orig'}};
player.play(c);
});
});
</script>