用media player播放不同类型的视频文件
我把上传上来的不同类型的视频文件在页面上用media player播放 ,比如rmvb,avi,flv,我下了一个win7解码器,但是在页面上还是播不了,只能播wmv的文件,是不是得把解码器嵌入到页面上啊?如果是怎么嵌入啊?最好有代码指教》。。
[解决办法]
AVI:
<object type="video/x-msvideo" data="1111.avi" width="320" height="240">
<param name="src"value="1111.avi" />
<param name="autostart" value="true" />
<param name="controller" value="true" />
</object>
RMVB:
<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="player" height="288" width="352" d="player">
<param name="_ExtentX" value="10001">
<param name="_ExtentY" value="6879">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="1111.rmvb">
<param name="CONTROLS" value="Imagewindow,ControlPanel,StatusBar">
<param name="CONSOLE" value="clip1">
<param name="LOOP" value="true">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
FLV:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="720" height="555">
<param name="movie" value=" 111.flv">
<param name="quality" value="high">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="True" />
<embed src="mflvplayer.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="720" height="555" allowScriptAccess="sameDomain" allowFullScreen="True">
</embed>
</object>