Vcastr 3.0 flv- flash video player 下载(开源)
Vcastr 3.0 演示:
特点
- 使用as3.0重新写了播放器
- 播放器大小缩小,在20+k左右
- 可以通过xml对播放器设置
- 可以播放多个影片,并且有影片列表
- 可以设置循环播放,自动播放,是否直接开始下载,控制栏的颜色和模式
- 控制栏可以适应超小的尺寸
- 可以使用插件扩充播放器的功能
- 可以用插件设置logo及连接
- 可以用插件来用javascript控制播放器
更新历史
下载
插入代码
直接写入参数
<object id=“vcastr3″ data=“vcastr3.swf?xml=
<vcastr>
<channel>
<item>
<source>http://vcastr.ruochi.com/video/happy_feet.flv</source>
</item>
</channel>
</vcastr>" type="application/x-shockwave-flash" width="240" height="180">
<param name=”movie” value=”vcastr3.swf?xml=
<vcastr>
<channel>
<item>
<source>http://vcastr.ruochi.com/video/happy_feet.flv</source>
</item>
</channel>
</vcastr>" />
<param name=“allowFullScreen” value=“true” />
</object>
使用xml传递参数
<object id=“vcastr3″ data=“vcastr3.swf?xml=http://vcastr.ruochi.com/v3/vcastr3.xml” type=“application/x-shockwave-flash” width=“240″ height=“180″>
<param name=“movie” value=“vcastr3.swf?xml=http://vcastr.ruochi.com/v3/vcastr3.xml” />
<param name=“allowFullScreen” value=“true” />
</object>
参数说明
xml的可以设置的全部参数,以及默认的数值
<vcastr>
<channel>
<item>
<source>http://vcastr.ruochi.com/video/happy_feet.flv</source>
<duration></duration>
<title></title>
</item>
<item>
<source>http://vcastr.ruochi.com/video/happy_feet.flv</source>
<duration></duration>
<title></title>
</item>
<item>
<source>http://vcastr.ruochi.com/video/happy_feet.flv</source>
<duration></duration>
<title></title>
</item>
</channel>
<config>
<bufferTime>4</bufferTime>
<contralPanelAlpha>0.75</contralPanelAlpha>
<controlPanelBgColor>0xff6600</controlPanelBgColor>
<controlPanelBtnColor>0xffffff</controlPanelBtnColor>
<contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro>
<controlPanelMode>float</controlPanelMode>
<defautVolume>0.8</defautVolume>
<isAutoPlay>true</isAutoPlay>
<isLoadBegin>true</isLoadBegin>
<isShowAbout>true</isShowAbout>
<scaleMode>showAll</scaleMode>
</config>
<plugIns>
<logoPlugIn>
<url>LogoPlugIn.swf</url>
<logoText>Ruochi.com</logoText>
<logoTextAlpha>0.75</logoTextAlpha>
<logoTextFontSize>24</logoTextFontSize>
<logoTextColor>0xffffff</logoTextColor>
<textMargin>10 auto auto 10</textMargin>
<logoClipUrl>/article/UploadPic/20087/22/2008722205516131.png</logoClipUrl>
<logoClipAlpha>1</logoClipAlpha>
<clipMargin>10 10 auto auto</clipMargin>
</logoPlugIn>
<javaScriptPlugIn>
<url>javaScriptPlugIn.swf</url>
</javaScriptPlugIn>
</plugIns>
</vcastr>
以下用”.”描述xml树结构并说明参数作用
影片信息
channel.item
影片信息,可以设置多个影片
channel.itme.source
flv影片地址参数,此参数是唯一必须要有的参数,其他参数都可以不要,播放器有默认参数
channel.itme.duration
对应影片的总时间, 单位是秒,由于有些影片在制作过程中时间信息丢失,可以通过这里来设置
channel.itme.tilte
对应影片的标题
channel.itme.link
对应影片点击后的链接