今天发现有个客户的网站flv视频不能播放,发现有的虚拟主机的的MIME类型设置过一段时间就自动失效了,为此需要重新添加
新建扩展名:flv
MIME类型:flv-application/octet-stream
flv的网页播放器代码
<object class id="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="240">
<param name="movie" value="flvplayer.swf">
<param name="quality" value="high">
<param name="allowFullScreen" value="true">
<param name="FlashVars" value="vcastr_file=p_w_picpaths/1234.flv&LogoText=http://wb.mlhd.org&BufferTime=3&IsAutoPlay=1">
<embed src="flvplayer.swf" allowfullscreen="true" flashvars="vcastr_file=p_w_picpaths/1234.flv&LogoText=http://wb.mlhd.org&IsAutoPlay=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="240"></embed>
</object>
此代码的flvplayer.swf文件要放入本地服务器或者空间,也可以直接下载魅力网络整理好的附件
附件:http://down.51cto.com/data/2367018