flowplayer 播放列表 - 设置播放列表中第一个视频的第一帧的启动图像
我正在使用 flowplayer 在我的网站上播放视频,并且我配置了一个包含 4 个视频的播放列表,类似于: Flowplayer 播放列表
但我看到的是,视频在视频上描绘了一个播放按钮,单击该按钮后,我可以播放视频。
相反,我希望将第一个视频的第一帧作为视频上的启动屏幕。
我尝试使用这些设置,但它们不起作用:
$(function() {
// setup player without "internal" playlists
$f("player2", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {baseUrl: '', autoPlay: false, autoBuffering: true, start: 62}
// use playlist plugin. again loop is true
}).playlist("div.petrol", {loop:false});
});
并且视频播放列表配置为:
<div class="clips petrol" style="float:left">
<!-- single playlist entry -->
<a href="a.flv" class="first">
Palm trees and the Sun
<span>HTTP streaming</span>
<em>0:20 min</em>
</a>
<a href="b.flv">
Happy feet inside a car
<span>HTTP streaming</span>
<em>0:20 min</em>
</a>
............
</div>
I am using flowplayer to play videos on my site, and i have configured a playlist with 4 videos, similar to this: Flowplayer Playlist
But what i saw is that, the video portrays a Play button on the video, upon clicking on which, i can play the video.
Instead, i would like to have the first frame of the first video as the splash screen on the video.
I tried with these settings, but they did not work:
$(function() {
// setup player without "internal" playlists
$f("player2", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {baseUrl: '', autoPlay: false, autoBuffering: true, start: 62}
// use playlist plugin. again loop is true
}).playlist("div.petrol", {loop:false});
});
And the video playlist is configured as:
<div class="clips petrol" style="float:left">
<!-- single playlist entry -->
<a href="a.flv" class="first">
Palm trees and the Sun
<span>HTTP streaming</span>
<em>0:20 min</em>
</a>
<a href="b.flv">
Happy feet inside a car
<span>HTTP streaming</span>
<em>0:20 min</em>
</a>
............
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您看过这个播放列表教程吗?它解释了如何制作包含静态图像的播放列表,用作启动视频的启动屏幕(即,您可以在视频第一帧的顶部创建自己的播放按钮图标)。
http://flowplayer.org/demos/configuration/playlist.html
另外,还有关于初始屏幕的教程,解释了如何最初显示静态图像,当您单击该图像时,它将激活 Flowplayer 视频。
http://static.flowplayer.org/demos/installation/splash-image.html
关于使用视频的第一帧作为静态图像,它说;
如果您想要使用单个视频播放器来显示视频列表的替代方案,它还包含指向“同一页面上的多个播放器”教程的链接。
Have you seen this playlist tutorial? It explains how you can make a playlist with static images to use as the splash screen to start the video (i.e. you can create your own play button icon on top of the first frame of the video).
http://flowplayer.org/demos/configuration/playlist.html
Also, there is a tutorial on splash screens that explains how you can initially display a static image which when you click it, it will activate the Flowplayer video.
http://static.flowplayer.org/demos/installation/splash-image.html
Regarding using the first frame of your video for the static image, it says;
It also has links to the "Multiple players on a same page" tutorial, if you want an alternative to using a single video player to display a list of videos.