2011-08-29 65 views
2

美好的一天。我有一部需要用流水游戏显示的电影。问题在于电影的第一帧是白色的,背景是白色的,一切都是白色的。我想要使​​用图像或可乐或其他任何东西,而不是第一帧。这是我的代码:流水游戏 - 显示图像而不是播放器

<a href="{$baseurl}/mm.flv" style="background: #000000; margin-bottom: 30px; height: 113px; display: block; position: relative;" id="player102" style="padding-bottom: 10px"></a> 
<script> 
    flowplayer("player102", "/js/flowplayer/flowplayer-3.2.5.swf", {ldelim} 
     plugins: {ldelim} 
      controls: null 
     {rdelim}, 

     clip: {ldelim} 
      autoPlay: false, 
      autoBuffering: true 
     {rdelim} 
    {rdelim}); 
</script> 

是Smarty的模板,

{} rdelim =}

{ldelim} = {。

回答

1

你应该能够做到这一点

<param name="flashvars" 
    value='config={"playlist":["LINK TO IMAGE HERE",{"url":"LINK TO VIDEO HERE","autoPlay":false}]}' /> 

你也可以做到这一点

<!-- setup things like in the minimal setup --> 
<a href="http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-700.flv" id="player" 
    style="display:block;width:425px;height:300px"> 

    <!-- specify a splash image inside the container --> 
    <img src="/img/home/flow_eye.jpg" alt="Search engine friendly content" /> 

</a> 

http://flowplayer.org/demos/installation/splash-image.html

+0

我管理着一种播放列表来做到这一点...但你的版本看起来也可以接受(虽然我没有检查它,我认为它可行)。 – zozo