"在本地使用Flash媒體播放器可以播放的FLV視頻,傳到網上就不行了."
其實原因很簡單,因為國內大多都是Win2003的主機.預設是沒有指定輸出FLV這種格式的.
雖然FTP裡面可以看見,但無法通過http訪問,也就無法播放了.
兩種解決辦法:
1,找伺服器管理員,添加FLV檔案類型輸出支援.
2,把副檔名flv改成swf來播放.
3, 解決“虛擬機器主機都不支援Flv格式檔案”的問題:比如你的Flv檔案名稱是a.flv,在虛擬機器主機上建一個名為“a.flv”的目錄,在此目錄下放你的Flv格式檔案,將其改名為:index.htm,這樣就行了,播放器中的檔案名稱保持原樣不動,這樣就可以了.
以下是解決2003中的問題,在XP中同樣實用
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.