当前位置: 代码迷 >> ASP.NET >> Flv 文件如何设置自动播放
  详细解决方案

Flv 文件如何设置自动播放

热度:7532   发布时间:2013-02-25 00:00:00.0
Flv 文件怎么设置自动播放
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="260" height="100" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0">
  <param name="allowFullScreen" value="true" />
  <param name="allowscriptaccess" value="always" />
  <param name="wmode" value="opaque" />
  <param name="src" value="flvplayer.swf?vcastr_file=../../Files/1.flv" />
  <param name="allowfullscreen" value="true" />
  <embed type="application/x-shockwave-flash" width="260" height="100" src="flvplayer.swf?vcastr_file=../../Files/1.flv" allowfullscreen="true" allowscriptaccess="always" wmode="opaque">
  </embed>
  </object>

这样的代码为什么不能自动播放呢?非要点一下才播放



------解决方案--------------------------------------------------------
<param name="autostart" value="true"/> 
<param name="src" value="flvplayer.swf?autostart=true&vcastr_file=../../Files/1.flv" />



<embed type="application/x-shockwave-flash" width="260" height="100" src="flvplayer.swf?autostart=true&vcastr_file=../../Files/1.flv" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" autostart="true">


主要的是你需要去查flvplayer.swf的参数说明