gpt4 book ai didi

javascript - flowplayer - 显示图像而不是播放器

转载 作者:行者123 更新时间:2023-11-30 06:02:39 24 4
gpt4 key购买 nike

大家好。我有一部电影需要用 flowplayer 播放 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} = {.

最佳答案

你应该可以做到这一点

<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

关于javascript - flowplayer - 显示图像而不是播放器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7230451/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com