这篇文章主要介绍了js实现的万能flv网页播放器代码,以简单示例形式分析了JavaScript使用swfobject.js实现在线播放flv视频的相关技巧,需要的朋友可以参考下
本文实例讲述了js实现的万能flv网页播放器代码。分享给大家供大家参考,具体如下:
<div id="player5"><script type="text/javascript" src="swfobject.js"></script><script type="text/javascript">
var s5 = new SWFObject("FlvPlayer201002.swf","playlist","300","210","7");
s5.addParam("allowfullscreen","true");
s5.addVariable("autostart","false");
s5.addVariable("image","flash5.jpg");
s5.addVariable("file","nobody.flv");
s5.addVariable("width","300");
s5.addVariable("height","210");
s5.write("player5");
</script></div>
附:
swfobject.js的官方地址:http://blog.deconcept.com/swfobject/
希望本文所述对大家JavaScript程序设计有所帮助。