concrete5 FLV再生 その2
昨日書いたconcrete5 FLV再生 では 縦横比がきちんと表示できるようなカスタマイズ方法を書きましたが、デフォルトが自動再生になっているので、それではちょっと困りますといった場合の設定方法を書いておきます。
参考にした元記事
http://www.concrete5.org/community/forums/customizing_c5/aspect_ratio_change_in_video_player
ファイルはこちらダウンロードできます。
こちらで、view.phpというファイルをconcrete5でふぉるのとファイルと上書きするのですが、30行目からの以下の個所を
<script>
flowplayer(“player”, “<?=$this->getBlockURL()?>/flowplayer-3.1.1.swf”);
</script>
こちらのコードと入れ替えます。
<script>
flowplayer(“player”, “<?=$this->getBlockURL()?>/flowplayer-3.1.1.swf”, {
clip: {// these two configuration variables does the trick
autoPlay: false,
autoBuffering: true // <- do not place a comma here
}
});</script>
以上の作業で、autoplayが解除され、クリックしないと再生しなくなります。