第一步:
引入js文件(swfobject.js)
第二步:
添加html代码
<h3>single file, with preview image:</h3>
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
第三步:
添加js代码
<script type="text/javascript">
var s1 = new SWFObject("<?php echo RESOURCE_SITE_URL;?>/js/jw_flv_player/flvplayer.swf","single","600","300","7");
s1.addParam("allowfullscreen","true");
// s1.addVariable("file","123.mp4");
// s1.addVariable("file","ace/data/upload/shop/store/goods/1/1_04944214230038561.mp4");
s1.addVariable("file","<?php echo goodsVideo($output['goods']['goods_video'],$output['goods']['store_id'])?>");
s1.addVariable("image","preview.jpg");
s1.addVariable("width","600");
s1.addVariable("height","300");
s1.write("player1");
</script>