Vcastr3.0 - flash video(flv) player 播放器網(wǎng)址:www.ruochi.com/main/2008/03/19/vcastr-30/
我的網(wǎng)站使用了Vcastr3.0 - flash video(flv) player 播放器,不過(guò)傳到我的win2003服務(wù)器上就不能播放我自己的flv了,原以為是路徑錯(cuò)了,或者文件太大,檢查過(guò)后不是,因?yàn)閲?guó)內(nèi)大多都是Win2003的主機(jī)。默認(rèn)是沒(méi)有指定輸出FLV這種格式,雖然FTP里面可以看見(jiàn),但無(wú)法通過(guò)http訪問(wèn),也就無(wú)法播放了。后來(lái)在網(wǎng)上搜到了,高人解決此問(wèn)題的方法,貼出來(lái)給大家分享。
哈哈,另外,附加上我的太極網(wǎng)鏈接:www.chinesetaijiquan.com
原因:WIN2003加強(qiáng)了IIS6的MIME驗(yàn)證,一切未注冊(cè)擴(kuò)展文件格式統(tǒng)統(tǒng)顯示404錯(cuò)誤。
解決方法一:
手動(dòng)在IIS中HTTP頭中的MIME類型中添加MIME影射關(guān)系,MIME類型:video/x-flv ,擴(kuò)展名:flv,即可通過(guò)Flash+客戶端Load進(jìn)來(lái)播放。
解決方法二:
虛擬主機(jī)上的解決辦法(虛擬主機(jī)都不支持Flv格式文件的問(wèn)題):●比如你的Flv文件名稱是a.flv,在虛擬主機(jī)上建一個(gè)名為“a.flv”的目錄;●在此目錄下放你的Flv格式文件,將其文件名改名為“index.htm ”;●播放器中的文件名保持原樣不動(dòng)。
解決方法三:
最簡(jiǎn)單的辦法是把FLV文件后綴改成SWF。
我是通過(guò)上面的方法三,解決此問(wèn)題。簡(jiǎn)單實(shí)用!
下面的方法是前輩總結(jié)的,我沒(méi)有試過(guò),有興趣的朋友可以參考一下。
_____________________________________________________________________________________________
解決方法二:
_____________________________________________________________________________________________
我的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>