FLV視頻上傳到網(wǎng)上不能播放的原因與解決辦法
2024-09-12 17:50:40
供稿:網(wǎng)友
"在本地使用Flash媒體播放器可以播放的FLV視頻,傳到網(wǎng)上就不行了."
其實(shí)原因很簡單,因?yàn)閲鴥?nèi)大多都是Win2003的主機(jī).默認(rèn)是沒有指定輸出FLV這種格式的.
雖然FTP里面可以看見,但無法通過http訪問,也就無法播放了.
兩種解決辦法:
1,找服務(wù)器管理員,添加FLV文件類型輸出支持.
2,把擴(kuò)展名flv改成swf來播放.
3, 解決“虛擬主機(jī)都不支持Flv格式文件”的問題:比如你的Flv文件名稱是a.flv,在虛擬主機(jī)上建一個(gè)名為“a.flv”的目錄,在此目錄下放你的Flv格式文件,將其改名為:index.htm,這樣就行了,播放器中的文件名保持原樣不動(dòng),這樣就可以了.
以下是解決2003中的問題,在XP中同樣實(shí)用
Windows 2003 Server does not stream FLV videos
Please be aware that these steps do not resolve any issue with Macromedia Flash, but are a configuration step for Microsoft Windows 2003 and Microsoft IIS Server 6.0. Any difficulties in executing those instructions or any errors that may arise from modifying your system settings should be addressed to Microsoft. For more details, please refer to your IIS documentation.
1.On the Windows 2003 server, open the Internet Information Services Manager.
2.Expand the Local Computer Server.
3.Right-click the local computer server and select Properties.
select the MIME Types tab.
4.Click the New... button and enter the following information:
Associated Extension box: .FLV
MIME Type box: flv-application/octet-stream
5.Click Ok.
6.Restart the World Wide Web Publishing service.