Flowplayer设置开始从Amazon S3的一个FLV视频的时间 [英] Flowplayer set start time of a .flv video from Amazon S3

查看:118
本文介绍了Flowplayer设置开始从Amazon S3的一个FLV视频的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到目前为止有:

当我打开一个jQuery的对话框,一个Flowplayer在该对话框中开始autoplaying和S3自动缓冲的URL。

When I open a jquery dialog, a Flowplayer in that dialog box starts autoplaying and autobuffering a url from s3.

我需要什么:

我有一个时间变量(比方说,300秒)。当我打开对话框我想要的视频从300.second启动(自动播放和自动缓冲的)。我想这样做,以任何方式,即在HTML,如果flowplayer支持它,或者在JavaScript。的方式并不重要。你知道我怎么能做到呢?

I have a time variable(let's say 300 seconds). When I open that dialog box I want the video to start from 300.second (autoplay and autobuffer on.). I want to do this in any way i.e in html if flowplayer supports it or in javascript. The way does not matter. Do you know how I can accomplish it?

当我使用的脚本code,如:

clip: { 
    onStart: function () {
        this.seek(300);
    }
}

它只能设法的滞留时间,在该点,即,以大约20秒至多,这当然是自然结束。

it can only seek to the end of the buffered time at that point i.e to around 20 seconds at most, which is of course natural.

有没有办法做到这一点?

Is there ANY way to do this?

感谢。

推荐答案

我发现我的答案。

由于flowplayer内部不支持的 psuedostreaming 的,我们需要使用CloudFront的,使我们能够流视频。有一个在AWS文档中关于一个很好的教程,但我几乎没有发现它,所以我在下面提供的链接。

Since flowplayer does not internally support psuedostreaming we need to use CloudFront which enables us to stream videos. There is a good tutorial about this in aws documentation but I hardly found it so I provide the link below.

<一个href="http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingFlowplayer.html" rel="nofollow">http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingFlowplayer.html

通常情况下,你需要做的是建立一个RTMP服务器和Web服务器,并通过RTMP服务器承载您的视频。 通过这种方式,您可以跳转到你想,即使其不流还没有任何时间,在任何时候你想开始你的视频。在flowplayer为此,您可以搜索功能,即:

Generally, what you need to do is create a rtmp server and a web server and host your videos through that rtmp server. By this way, you can jump to any time you want even if its not streamed yet, and start your video at any time you want. In flowplayer you do this with seek function i.e:

clip: { 
    onStart: function () {
        this.seek(300);
    }
}

在左边的面板中,你可以找到相同的教程FlowPlayer,JW播放机,的Adobe Flash Player等。

At the left panel, you can find the same tutorials for FlowPlayer, JW Player, Adobe Flash Player etc.

我希望它可以帮助别人与我的问题。

I hope it helps someone with my problem.

这篇关于Flowplayer设置开始从Amazon S3的一个FLV视频的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆