ADOU-V

导航

flvplayer.swf_视频播放器_参数

使用方法一:

 

1 <object classid=’clsid:D27CDB6E-AE6D-11cf-96B8-4445535411111′  codebase=’http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0′  width=500 height=400 >
2       <param name=’movie’ value=’/flvplayer.swf’ />
3       <param name=’quality’ value=’high’ />
4       <param name=’allowFullScreen’ value=’true’ />
5       <param name=’FlashVars’ value=’vcastr_file=/upload/201008/1leiv2fp3s01j.flv&IsAutoPlay=1&IsContinue=1′ />
6       <embed src=’/flvplayer.swf’ allowfullscreen=’true’ flashvars=’vcastr_file=/upload/201008/1leiv2fp3s01j.flv&IsAutoPlay=1&IsContinue=1′ quality=’high’ pluginspage=’http://www.macromedia.com/go/getflashplayer’ type=’application/x-shockwave-flash’  width=500 height=400 />
7 </object>

 


 

使用方法二:

 1     <script type="text/javascript" src="swfobject.js"></script>
 2     <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
 3     <script type="text/javascript">
 4         $(document).ready(function () {
 5             var playerFlv = new SWFObject("player.swf", "myplayer2", "452", "339", "9");
 6             playerFlv.addParam("allowfullscreen", "true");//开启全屏
 7             playerFlv.addVariable("screencolor", "white");
 8             playerFlv.addVariable("image", "preview7.jpg");//预加载图片
 9             playerFlv.addVariable("file", "1234.flv");//flv视频地址
10             playerFlv.write("player2");
11             var player1 = document.getElementById("player2");
12 
13         });
14     </script>
15 
16     <p id="player2" style=" width:452px; margin:0 auto;"></p>

 


 

参数配置:

参数名称 参数说明 默认值
 vcastr_file 方法2传递影片flv文件地址参数,多个使用|分开   空
vcastr_title  影片标题参数,多个使用|分开,与方法2配合使用  空 
 vcastr_xml  方法3 传递影片flv文件地址参数,样板参考 http://www.ruochi.com/product/vcastr2/vcastr.xml vcastr.xml 
 IsAutoPlay 影片自动播放参数:0表示不自动播放,1表示自动播放   0
IsContinue  影片连续播放参数:0表示不连续播放,1表示连续循环播   0
IsRandom  影片随机播放参数:0表示不随机播放,1表示随机播放   0
DefaultVolume   默认音量参数 :0-100 的数值,设置影片开始默认音量大小 100 
BarPosition  控制栏位置参数 :0表示在影片上浮动显示,1表示在影片下方显示 
IsShowBar  控制栏显示参数 :0表示不显示;1表示一直显示;2表示鼠标悬停时显示;3表示开始不显示,鼠标悬停后显示 
BarColor  播放控制栏颜色,颜色都以0x开始16进制数字表示   0x000033
 BarTransparent 播放控制栏透明度  60 
 GlowColor  按键图标颜色,颜色都以0x开始16进制数字表示 0x66ff00 
 IconColor 鼠标悬停时光晕颜色,颜色都以0x开始16进制数字表示  0xFFFFFF 
TextColor  播放器文字颜色,颜色都以0x开始16进制数字表示  0xFFFFFF 
 LogoText 可以添加自己网站名称等信息(英文)   空
 LogoUrl 可以从外部读取logo图片,注意自己调整logo大小,支持图片格式和swf格式   空
 EndSwf 影片播放结束后,从外部读取swf文件,可以添加相关影片信息,影片分享等信息,需自己制作   空
BeginSwf  影片开始播放之前,从外部读取swf文件,可以添加广告,或者网站信息,需自己制作   空
IsShowTime  是否显示时间 : 0表示不显示时间,1表示显示时间   1
BufferTime 影片缓冲时间,单位(秒) 2
 

 

demo下载1:http://yunpan.cn/cLIXhBRaPsQPn  访问密码 6cb2

demo下载2:http://yunpan.cn/cLIX7yze2s8PW  访问密码 952d

posted on 2015-11-24 22:50  a-dou  阅读(1102)  评论(0)    收藏  举报