我无法在IE浏览器中播放flv视频,我使用以下代码在简单的html页面中播放flv视频,它将在firefox和chrome中运行,但它不能在IE浏览器中播放所有版本,
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="200" title="myMovieName" id="myMovieName">
<param name="movie" value="http://www.youtube.com/v/IhyPCKOLNko?version=3">
<param name="wmode" value="opaque">
<param name="loop" value="false">
<embed src="http://www.youtube.com/v/IhyPCKOLNko?version=3" width="250" height="200" loop="false" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object>
我在这段代码中做错了什么? 任何人都可以建议我在IE浏览器中播放一个flv视频吗?
此致 KARTHIK。
答案 0 :(得分:2)
最好嵌入swf:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http:/ download.macromedia.com/pub/shockwave/
cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="300"
id="flashvideoplayer.swf" align="middle">
<param name="allowScriptAccess" value="sameDomain">
<param name="movie"
value="http://www.myhomepage.com/flashvideoplayer.swf?
flv=http://www.myhomepage.com/myvideofile.flv">
<param name="quality" value="high">
<param name="bgcolor" value="#ffffff">
<embed src="http://www.myhomepage.com/flashvideoplayer.swf?
flv=http://www.myhomepage.com/myvideofile.flv" quality="high" bgcolor="#ffffff" width="400" height="300" name="flashvideoplayer.swf"
align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</object>