flash在线视频播放器
使用xml传递参数
<object type="application/x-shockwave-flash" data="vcastr3.swf" width="650" height="500" id="vcastr3"> <param name="movie" value="vcastr3.swf"/> <param name="allowFullScreen" value="true" /> <param name="FlashVars" value="xml=vcastr.xml" /> < /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> <controlPanelBtnGlowColor>0xffff00</controlPanelBtnGlowColor> <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>http://www.ruochigroup.com/images/logo.png</logoClipUrl> <logoClipAlpha>1</logoClipAlpha> <clipMargin>10 10 auto auto</clipMargin> </logoplugin> <beginendimageplugin> <url>beginEndImagePlugIn.swf</url> <source>beginSwfTest.swf</source> <type>begin</type> <scaletype>exactFit</scaletype> </beginendimageplugin> <javascriptplugin> <url>javaScriptPlugIn.swf</url> </javascriptplugin> </plugins> < /vcastr>
影片信息 channel.item channel.itme.source? channel.itme.duration channel.itme.tilte channel.itme.link 播放器设置 config.bufferTime config.contralPanelAlpha config.controlPanelBgColor config.controlPanelBtnColor config.controlPanelBtnGlowColor config.defautVolume config.controlPanelMode config.isAutoPlay config.isLoadBegin config.isRepeat config.isShowAbout config.scaleMode 插件设置 plugIns 中每一个子节点代表一个插件,可以设置多个插件 plugIns.logoPlugIn,显示logo插件的参数设置 plugIns.logoPlugIn.url? plugIns.logoPlugIn.logoText? plugIns.logoPlugIn.logoTextAlpha plugIns.logoPlugIn.logoTextLink plugIns.logoPlugIn.logoTextFontSize plugIns.logoPlugIn.logoTextColor plugIns.logoPlugIn.textMargin? plugIns.logoPlugIn.logoClipUrl? plugIns.logoPlugIn.logoClipAlpha plugIns.logoPlugIn.logoClipLink plugIns.logoPlugIn.clipMargin (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |