如何制作可嵌入无线电自动播放?

时间:2010-09-18 14:19:14

标签: flash

我正在嵌入一个flash广播播放器,我已将flashVAR更改为true:<param name="FlashVars" value="autoPlay=true">

然而,我只是让玩家在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="300" height="250">
  <param name="movie" value="http://8tracks.com/mixes/145636/player_v3">
  <param name="allowscriptaccess" value="always">
  <param name="FlashVars" value="autoPlay=true">
  <embed src="http://8tracks.com/mixes/145636/player_v3"
    pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash"
    width="300" height="250" allowscriptaccess="always" >
  </embed>
</object>

3 个答案:

答案 0 :(得分:0)

您喜欢在对象标记中使用embed标记,以便在IE和其他浏览器中顺利运行。执行此操作时,请确保已更改两个标记中的相应变量。

另外请注意,如果您要添加HTML以及有关特定问题的更多信息,则可能会收到更多回复。

答案 1 :(得分:0)

<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="300" height="250"><param name="movie" value="http://8tracks.com/mixes/145636/player_v3"><param name="allowscriptaccess" value="always"><param name="FlashVars" value="autoPlay=true"><embed src="http://8tracks.com/mixes/145636/player_v3" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="250" allowscriptaccess="always" ></embed></object>`

答案 2 :(得分:0)

您最常将embed src="http://8tracks.com/mixes/145636/player_v3?autoplay=true"用于其他浏览器,例如:

<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="300" height="250">
<param name="movie" value="http://8tracks.com/mixes/145636/player_v3">
<param name="allowscriptaccess" value="always"><param name="FlashVars" value="autoPlay=true">
<embed src="http://8tracks.com/mixes/145636/player_v3?autoplay=true"
  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
  type="application/x-shockwave-flash" width="300" height="250" allowscriptaccess="always" >
</embed>
</object>