使用方法
1.js嵌入
方法一,直接copy下面程式碼,修改其中的 swf_width,swf_height,files,texts 參數
<script type="text/javascript">
var swf_width=240
var swf_height=240
var texts='幸福的腳丫預告片|變形金剛預告片|江南MV|魔獸世界-晚安部落'
var files='http://www.ruochi.com/product/vcastr/flv/happy_feet.flv|http://www.transformersmovie.com/transformers_640.flv|http://www.ruochi.com/product/vcastr/flv/江南.flv|http://www.ruochi.com/product/vcastr/flv/晚安部落.flv'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name="allowFullScreen" value="true" />');
document.write('<param name="FlashVars" value="vcastr_file='+files+'&vcastr_title='+texts+'">');
document.write('<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf" allowFullScreen="true" FlashVars="vcastr_file='+files+'&vcastr_title='+texts+'" menu="false" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script>
RunCopy
2,方法二,簡單直接傳遞影片地址
其中
vcastr_flie =http://www.ruochi.com/product/vcastr/flv/happy_feet.flv|http://www.ruochi.com/product/vcastr/flv/江南.flv|http://www.ruochi.com/product/vcastr/flv/晚安部落.flv
直接給出flv檔案地址,多個使用|分開
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="180">
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>
RunCopy
3,方法三,讀取影片xml
其中/product/vcastr2/vcastr2.swf?vcastr_xml_url =http://www.ruochi.com/product/vcastr/vcastr.xml
是播放列表的xml地址
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="240" height="120">
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="240" height="120"></embed>
</object>
RunCopy
4.進階選項
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="240" height="180">
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.ruochi.com/product/vcastr/flv/happy_feet.flv"
allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/
getflashplayer" type="application/x-shockwave-flash" width="240" height="180"></embed>
</object>
<http://www.ruochi.com/product/vcastr2/vcastr22.swf?參數A=111&參數B=222&....>
在以上"參數A=111&參數B=222"部分增加參數,使用 參數=值 的格式,多個參數用&連結,參數數量不限制,注意有2個綠色部分http://www.ruochi.com/product/vcastr2/vcastr22.swf地方需要修改
例如
value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.transformersmovie.com/transformers_640.flv&vcastr_title=變形金剛預告片&BarColor=0xFF6600&BarPosition=1"
表示影片地址是"http://www.transformersmovie.com/transformers_640.flv",標題是"變形金剛預告片",控制欄顏色是0xFF6600,控制欄位置在下方
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="224">
<param name="movie" value="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.transformersmovie.com/transformers_640.flv&vcastr_title=變形金剛預告片&BarColor=0xFF6600&BarPosition=1">
<param name="quality" value="high">
<param name="allowFullScreen" value="true" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr22.swf?vcastr_file=http://www.transformersmovie.com/transformers_640.flv&vcastr_title=變形金剛預告片&BarColor=0xFF6600&BarPosition=1" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="224"></embed>
</object>
RunCopy
參數名稱
參數說明 預設值
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表示連續循環播 1
IsRandom 影片隨機播放參數:0表示不隨機播放,1表示隨機播放 0
DefaultVolume 預設音量參數 :0-100 的數值,設定影片開始預設音量大小 100
BarPosition 控制欄位置參數 :0表示在影片上浮動顯示,1表示在影片下方顯示 0
IsShowBar 控制欄顯示參數 :0表示不顯示;1表示一直顯示;2表示滑鼠游標懸停時顯示;3表示開始不顯示,滑鼠游標懸停後顯示 2
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
常見問題
問:Logo 文字無法顯示
答:Logo 文字不能支援中文,可以用LogoUrl參數將Logo做成.swf檔案或者.png檔案。
問:xml 如何設定進階參數
答:如下
<param name="FlashVars" value="vcastr_xml=http://www.ruochi.com/product/vcastr2/
vcastr.xml&vcastr_title=幸福的腳丫預告片|變形金剛預告片|江南MV|魔獸世界-晚安部落&BarColor=0xFF6600&BarPosition=1" />
<embed src="http://www.ruochi.com/product/vcastr2/vcastr2.swf" allowFullScreen=
"true" FlashVars="vcastr_xml=http://www.ruochi.com/product/vcastr2/vcastr.xml&
vcastr_title=幸福的腳丫預告片|變形金剛預告片|江南MV|魔獸世界-晚安部落&BarColor=0xFF6600&BarPosition=1"
問:不能全螢幕
答:需要升級到flashplayer9.0以上
問:不能登出全螢幕
答:雙擊可以進入或登出全螢幕
問:影片不能拖動進度
答:是由於轉換檔案格式時候有一些訊息丟失,可以使用FLV MetaData Injector修復, 載地址: http://www.buraks.com/flvmdi ;
問:flv放在自己伺服器上就不能播放了
答:是由於您的伺服器不支援.flv檔案格式下載,修改成其他格式比如.swf,當然,相應的vcastr_file或者vcastr_xml中的flv檔案名也要修改成.swf