2011-08-29 40 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