Vcastr3.0 - flash video(flv) player 播放器網址:www.ruochi.com/main/2008/03/19/vcastr-30/
我的網站使用了Vcastr3.0 - flash video(flv) player 播放器,不過傳到我的win2003服務器上就不能播放我自己的flv了,原以為是路徑錯了,或者文件太大,檢查過后不是,因為國內大多都是Win2003的主機。默認是沒有指定輸出FLV這種格式,雖然FTP里面可以看見,但無法通過http訪問,也就無法播放了。后來在網上搜到了,高人解決此問題的方法,貼出來給大家分享。
哈哈,另外,附加上我的太極網鏈接:www.chinesetaijiquan.com
原因:WIN2003加強了IIS6的MIME驗證,一切未注冊擴展文件格式統統顯示404錯誤。
解決方法一:
手動在IIS中HTTP頭中的MIME類型中添加MIME影射關系,MIME類型:video/x-flv ,擴展名:flv,即可通過Flash+客戶端Load進來播放。
解決方法二:
虛擬主機上的解決辦法(虛擬主機都不支持Flv格式文件的問題):●比如你的Flv文件名稱是a.flv,在虛擬主機上建一個名為“a.flv”的目錄;●在此目錄下放你的Flv格式文件,將其文件名改名為“index.htm ”;●播放器中的文件名保持原樣不動。
解決方法三:
最簡單的辦法是把FLV文件后綴改成SWF。
我是通過上面的方法三,解決此問題。簡單實用!
下面的方法是前輩總結的,我沒有試過,有興趣的朋友可以參考一下。
_____________________________________________________________________________________________
解決方法二:
_____________________________________________________________________________________________
我的HTML代碼:
<object type="application/x-shockwave-flash" data="Vcastr3/vcastr3.swf" width="170"
height="157" id="vcastr3">
<param name="movie" value="Vcastr3/vcastr3.swf" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="xml=Vcastr3/vcastr.xml" />
</object>
_____________________________________________________________________________________________
我的XML代碼:
<?xml version="1.0" encoding="utf-8" ?>
<vcastr>
<channel>
<item>
<source>http://www.holylandtravel.cn/Vcastr3/ShengDiSong.flv</source>
<duration></duration>
<title>圣地社歌</title>
<link></link>
</item>
</channel>
<config>
<bufferTime>4</bufferTime>
<contralPanelAlpha>1</contralPanelAlpha>
<controlPanelBgColor>0xff6600</controlPanelBgColor>
<controlPanelBtnColor>0xffffff</controlPanelBtnColor>
<contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro>
<controlPanelMode>bottom</controlPanelMode>
<defautVolume>1</defautVolume>
<isAutoPlay>false</isAutoPlay>
<isLoadBegin>true</isLoadBegin>
<isShowAbout>true</isShowAbout>
<scaleMode>showAll</scaleMode>
<isRepeat>false</isRepeat>
</config>
</vcastr>
_____________________________________________________________________________________________
解決方法三:
_____________________________________________________________________________________________
把FLV文件后綴改成SWF
我的HTML代碼:
<object type="application/x-shockwave-flash" data="Vcastr3/vcastr3.swf" width="170"
height="157" id="vcastr3">
<param name="movie" value="Vcastr3/vcastr3.swf" />
<param name="allowFullScreen" value="true" />
<param name="FlashVars" value="xml=Vcastr3/vcastr.xml" />
</object>
_____________________________________________________________________________________________
我的XML代碼:
<?xml version="1.0" encoding="utf-8" ?>
<vcastr>
<channel>
<item>
<source>../Vcastr3/ShengDiSong.swf</source>
<duration></duration>
<title>圣地社歌</title>
<link></link>
</item>
<item>
<source>../Vcastr3/ShengDiSong.flv</source>
<duration></duration>
<title>圣地社歌</title>
<link></link>
</item>
</channel>
<config>
<bufferTime>4</bufferTime>
<contralPanelAlpha>1</contralPanelAlpha>
<controlPanelBgColor>0xff6600</controlPanelBgColor>
<controlPanelBtnColor>0xffffff</controlPanelBtnColor>
<contralPanelBtnGlowColro>0xffff00</contralPanelBtnGlowColro>
<controlPanelMode>bottom</controlPanelMode>
<defautVolume>1</defautVolume>
<isAutoPlay>false</isAutoPlay>
<isLoadBegin>true</isLoadBegin>
<isShowAbout>true</isShowAbout>
<scaleMode>showAll</scaleMode>
<isRepeat>false</isRepeat>
</config>
</vcastr>
posted on 2009-09-22 20:44
kenzhang 閱讀(2602)
評論(0) 編輯 收藏