"在本地使用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.