2

这是我的嵌入代码:

<embed width="576" height="432" flashvars="&amp;
    file=kgalive&amp;
    streamer=rtmp://5.77.33.107/kga" wmode="opaque" 
    allowscriptaccess="always" allowfullscreen="true"
    quality="high" name="player" id="player" style=""
    src="player.swf" autostart="always" 
    type="application/x-shockwave-flash"/>

它可以工作,但我的播放器在打开网页时不会自动启动。我应该怎么做才能自动启动我的播放器?

4

2 回答 2

1

基本上:

<embed width="576" height="432" flashvars="&amp;
    file=kgalive&amp;
    streamer=rtmp://5.77.33.107/kga" wmode="opaque" 
    allowscriptaccess="always" allowfullscreen="true"
    quality="high" name="player" id="player" style=""
    src="player.swf" autostart="always" 
    type="application/x-shockwave-flash"/>

需要是:

<embed width="576" height="432" flashvars="&amp;
    autostart=true&amp;file=kgalive&amp;
    streamer=rtmp://5.77.33.107/kga" wmode="opaque" 
    allowscriptaccess="always" allowfullscreen="true"
    quality="high" name="player" id="player" style=""
    src="player.swf" autostart="always" 
    type="application/x-shockwave-flash"/>
于 2013-03-27T15:43:31.700 回答
1

我认为应该是

autostart="true" 

我这样做:

<object id="mediaplayer" width="100%" height="100%" type="application/x-shockwave-flash" data="jwplayer/player.swf" bgcolor="#000000" name="mediaplayer" tabindex="0">
  <param name="allowfullscreen" value="true">
  <param name="allowscriptaccess" value="always">
  <param name="seamlesstabbing" value="true">
  <param name="wmode" value="opaque">
  <param name="flashvars" value="netstreambasepath=<URLHERE>&id=mediaplayer&autostart=true&repeat=always&shuffle=false&controlbar.position=none">
</object>
于 2013-03-27T04:40:44.810 回答