flowplayer 播放列表 - 设置播放列表中第一个视频的第一帧的启动图像

发布于 2024-11-19 13:57:32 字数 1127 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

善良天后 2024-11-26 13:57:32

您看过这个播放列表教程吗?它解释了如何制作包含静态图像的播放列表,用作启动视频的启动屏幕(即,您可以在视频第一帧的顶部创建自己的播放按钮图标)。

http://flowplayer.org/demos/configuration/playlist.html

另外,还有关于初始屏幕的教程,解释了如何最初显示静态图像,当您单击该图像时,它将激活 Flowplayer 视频。

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

关于使用视频的第一帧作为静态图像,它说;

如果您有大量视频,您可以使用 FFMPEG 从您的视频中抓取图像
视频文件,无需麻烦地完成所有工作
手动。

如果您想要使用单个视频播放器来显示视频列表的替代方案,它还包含指向“同一页面上的多个播放器”教程的链接。

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;

If you have lots of videos you can use FFMPEG to grab images from your
video file without the hassle of making a doing all that work
manually.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文