首页 » 软件下载资源 » 推荐一个FLV播放器Vcastr3

推荐一个FLV播放器Vcastr3

我看这是个老播放器了,但简单实用,很多人都在使用,有控制条,进度条,下载进度显示,音量调节,暂停功能,背景等,随便说下背景色可用8位数字表示,也可以用oxff0000这种十六进制方式表示。 更多参数见内页
演示: http://www.suntw.com/demo/flvplayer1.html 代码如下:

<object type="application/x-shockwave-flash" data="http://www.suntw.com/demo/vcastr3.swf"
width="650" height="500" id="v3">
	<param name="movie" value="http://www.suntw.com/demo/vcastr3.swf"/> 
	<param name="allowFullScreen" value="true" />
	<param name="FlashVars" value="xml=
	<vcastr><channel><item><source>http://vcastr.ruochi.com/video/happy_feet.flv</source></item></channel>
	<config><controlPanelBgColor>15151515</controlPanelBgColor></config></vcastr>
	"/>
</object>

以下用”.”描述xml树结构并说明参数作用

影片信息

channel.item
影片信息,可以设置多个影片

channel.itme.source
flv影片地址参数,此参数是唯一必须要有的参数,其他参数都可以不要,播放器有默认参数

channel.itme.duration
对应影片的总时间, 单位是秒,由于有些影片在制作过程中时间信息丢失,可以通过这里来设置

channel.itme.tilte
对应影片的标题

channel.itme.link
对应影片点击后的链接

播放器设置

config.bufferTime
在缓存区影片的时间,单位是秒

config.contralPanelAlpha
控制栏的透明度,在 0 — 1 之间

config.controlPanelBgColor
控制栏背景的颜色

config.controlPanelBtnColor
控制按钮的颜色

config.contralPanelBtnGlowColro
控制按钮光晕的颜色

config.defautVolume
默认的声音大小,最大为1,最小为0

config.controlPanelMode
控制栏的显示模式,
“float”: 默认的浮动模式,鼠标移除播放器就会隐藏掉
“normal”: 正常模式,任何时候都在影片的下部浮动显示
“bottom”: 下部模式,不浮动在影片之上,而是显示在影片下方
“none”: 不显示播放器控制栏

config.isAutoPlay
是否影片自动开始播放,默认是true

config.isLoadBegin
是否一开始就读取影片,默认是true

config.isRepeat
是否循环播放影片,默然是false

config.isShowAbout
是否显示关于信息

config.scaleMode
影片放缩模式:
“showAll”: 可以看到全部影片,保持比例,可能上下或者左右
“exactFit”: 放缩影片到播放器的尺寸,可能比例失调
“noScale”: 影片的原始尺寸,无放缩
“noBorder”: 影片充满播放器,保持比例,可能会被裁剪

, ,

转发到新浪微博 转发到新浪微博

目前这篇文章有227条评论(Rss)

我要评论