网站 flv 视频播放插件(javascript,flash)

使用方法:

<span id="player1"></span>
<script src="video/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
    var s1 = new SWFObject("video/flvplayer.swf", "single", "198", "190", "7");
    s1.addParam("allowfullscreen", "true");//是否可以全屏
    s1.addVariable("autostart", "true");//是否自动播放
    s1.addVariable("repeat", "true");//是否循环播放
    s1.addVariable("image", "preview.jpg");
    
    s1.addVariable("file", "http://www.abc.com/01.flv");//flv路径
    
    s1.addVariable("clicktext", "开始");
    s1.write("player1");//对应上面的span标签id值
    s1.addVariable("width", "640");//你懂的
    s1.addVariable("height", "240");//你懂的
</script>

 

符件下载:flv 视频代码

posted @ 2012-12-31 21:51  suger  阅读(7626)  评论(1编辑  收藏  举报