jwpalyer网页播放器的使用

1。导入js文件 swfobject.js
<script type="text/javascript" src="swfobject.js"></script>


2,在head中加入脚本
<script type="text/javascript">
	var s1 = new SWFObject("flvplayer.swf","single","300","170","7");
	s1.addParam("allowfullscreen","true");
	s1.addVariable("file","video.flv");
	s1.addVariable("image","preview.jpg");
	s1.addVariable("width","300");
	s1.addVariable("height","170");
	s1.write("player1");


</script>
3,在body中加入dev
<div id="player1"></div>

參考:http://blog.csdn.net/joeyon1985/article/details/39964335
posted on 2017-08-06 14:00  ljbguanli  阅读(204)  评论(0编辑  收藏  举报