使用Flowplayer,自动播放错误无法正常工作

时间:2012-10-31 19:02:47

标签: javascript video flv flowplayer flash-video

在Wordpress网站上,我正在尝试播放.flv文件。我正在使用客户端在其先前版本的网站上使用的Flowplayer插件。新网站是在Wordpress中,一个更改请求是视频无法自动播放。

这是我正在使用的代码:

<a id="player" style="display: block; width: 475px; height: 370px;" href="[full path to file]/201110Janek.flv">
<object id="player_api" width="100%" height="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 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="quality" value="high" />
<param name="autoplay" value="false" />
<param name="cachebusting" value="false" />
<param name="flashvars" value="config={&quot;playerId&quot;:&quot;player&quot;,&quot;clip&quot;:{&quot;url&quot;:&quot;[full path to file]/201110Janek.flv&quot;},&quot;playlist&quot;:[{&quot;url&quot;:&quot;[full path to file]/201110Janek.flv&quot;}]}" />
<param name="src" value="[full path to file]/flowplayer-3.2.15.swf" />
<embed id="player_api" width="100%" height="100%" type="application/x-shockwave-flash" src="[full path to file]/flowplayer-3.2.15.swf" allowfullscreen="true" allowscriptaccess="always" quality="high" autoplay="false" cachebusting="false" flashvars="config={&quot;playerId&quot;:&quot;player&quot;,&quot;clip&quot;:{&quot;url&quot;:&quot;[full path to file]/201110Janek.flv&quot;},&quot;playlist&quot;:[{&quot;url&quot;:&quot;[full path to file]/201110Janek.flv&quot;}]}" /></object></a>

<script type="text/javascript">// <![CDATA[flowplayer("player", "[full path to file]/flowplayer-3.2.15.swf", {
clip: {
    // these two configuration variables does the trick
    autoPlay: false,
    autoBuffering: true}

    });
// ]]></script>

Everythings工作正常,视频播放应该是,但它会自动播放,尽管脚本中有自动播放参数和自动播放设置。

有关我做错的任何建议吗?

0 个答案:

没有答案