<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    孤燈野火
    暢想的天空
    posts - 2,comments - 4,trackbacks - 0
     

    實現網頁中播放FLV文件的源代碼

    使用方法:
    方法一、js嵌入
    直接copy下面代碼,修改其中紅色部分,即:swf_widthswf_heighttextsfiles 參數

    <script type="text/javascript">
    var swf_width=240
    var swf_height=240
    var texts=’
    幸福的腳丫預告片
    var files=’
    http://www.ruochi.com/product/vcastr/flv/happy_feet.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>

    其中:
    幸福的腳丫預告片是標題。
    http://www.ruochi.com/product/vcastr/flv/happy_feet.flvFLV文件地址。
    http://www.ruochi.com/product/vcastr2/vcastr22.swfFLV文件播放器地址(如果你不會制作,可下載別人的然后上傳到自己的空間再調用)。

    flv播放器 Vcastr 2.0 下載
    http://www.ruochi.com/product/vcastr2/vcastr22.zip




    方法二、簡單直接傳遞影片地址

    <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>



    方法三、讀取影片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>

    其中: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="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.ruochi.com/product/vcastr/flv/happy_feet.flv&vcastr_title=幸福的腳丫預告片&BarColor=0xFF6600&BarPosition=1"


    表示影片地址是"http://www.ruochi.com/product/vcastr/flv/happy_feet.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.ruochi.com/product/vcastr/flv/happy_feet.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.ruochi.com/product/vcastr/flv/happy_feet.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>

    參數名稱

    參數說明

    默認值

    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

    posted on 2009-09-09 00:14 孤飛燕 閱讀(1120) 評論(0)  編輯  收藏 所屬分類: JS
    主站蜘蛛池模板: 在线a亚洲老鸭窝天堂av高清| 亚洲黄色免费电影| 美女视频黄的全免费视频网站| 中美日韩在线网免费毛片视频 | 9久热这里只有精品免费| 亚洲www在线观看| 亚洲一本之道高清乱码| 亚洲视频在线免费播放| 久久久亚洲精品无码| 中文字幕精品无码亚洲字| 午夜国产羞羞视频免费网站| 四虎影视www四虎免费| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 亚洲人成网址在线观看| 精品亚洲综合久久中文字幕| 亚洲欧洲日产国码无码久久99 | 伊人久久国产免费观看视频| 日韩国产精品亚洲а∨天堂免| 亚洲色偷偷综合亚洲AV伊人蜜桃| 精品久久亚洲中文无码| 亚洲AV无码一区二区三区性色| 亚洲码和欧洲码一码二码三码 | 亚洲国产午夜中文字幕精品黄网站| 又大又粗又爽a级毛片免费看| 夜色阁亚洲一区二区三区| 久久精品亚洲视频| 67194在线午夜亚洲| 亚洲欧洲无码一区二区三区| 亚洲国产精品无码久久九九大片 | 水蜜桃亚洲一二三四在线| 亚洲五月综合网色九月色| 日韩精品免费一线在线观看| 国产免费A∨在线播放| 18禁美女裸体免费网站| 又黄又大又爽免费视频| 久久久久亚洲AV片无码下载蜜桃| 国产精品亚洲专区无码WEB| a级毛片免费在线观看| 国产高清视频在线免费观看| 亚洲AV无码1区2区久久| 国产精品亚洲专区无码不卡|