上传 flv格式文件一致提示文件类型不允许,是因为CI中的配置文件没有支持这个格式

在 application/config/mimes.php中加入

'flv'    =>    array('video/flv', 'video/x-flv', 'flv-application/octet-stream', 'application/octet-stream'),

就可以了

前端播放flv使用  JW player播放器,官网地址为:http://www.jwplayer.com/

播放代码为:

<object id="player1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player1"width="328" height="200">
<param name="movie" value="player.swf" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars"value="file=video.flvℑ=preview.jpg&autostart=false&type=http&streamer=start" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="player.swf"
width="328"
height="200"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=video.flvℑ=preview.jpg&autostart=false&type=http&streamer=start"
/>
</object>
05-11 21:59