在 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={"playerId":"player","clip":{"url":"[full path to file]/201110Janek.flv"},"playlist":[{"url":"[full path to file]/201110Janek.flv"}]}" />
<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={"playerId":"player","clip":{"url":"[full path to file]/201110Janek.flv"},"playlist":[{"url":"[full path to file]/201110Janek.flv"}]}" /></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>
一切正常,视频播放正常,但它会自动播放,尽管脚本中有自动播放参数和自动播放设置。
关于我做错了什么有什么建议吗?