CloudFront - 流式分发 - 忽略不在根目录中的文件

发布于 2024-10-19 09:05:56 字数 296 浏览 6 评论 0原文

我的 S3 存储桶的目录中有一堆视频。

dataBucket 包含:videos/18512/version1.flv - 还包含该目录中的其他版本

现在,当通过 Cloudfront 使用 RTMP 流分发时,它在视频文件为在桶的根部。如果在子目录中,正如您在我的结构中看到的那样(这确实是必要的),它将忽略/找不到文件。

我在亚马逊支持或谷歌搜索上看不到任何关于此的信息,甚至在这里。如果这是野兽的本质还是设置/配置问题,有什么建议吗?

I've got a bunch of videos in a directory, in my S3 bucket.

dataBucket contains: videos/18512/version1.flv - also contains other versions in that directory

Now, when using RTMP streaming distribution via Cloudfront it will only work if the video files are in the root of the bucket. If in sub directories, as you see with my structure (which is necessary really), it will ignore/not find the files.

I can't see anything about this on Amazon support or googling, or indeed here. Any advice if this is nature of the beast or a setting/config issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

终止放荡 2024-10-26 09:05:56

我自己也被这个问题困扰,事实证明,对于 JW 播放器,您需要在路径前面加上 mp4: 前缀。

因此,对于您的示例,Cloud Front 的 rtmp 路径是。

rtmp://xxxxxx.cloudfront.net/cfx/st/mp4:videos/18512/version1.flv

由于问题的年龄,您一定已经克服了这个问题。但由于这是我在寻找答案时出现的,我想把它留给其他可能也找到它的人。

Was stuck on this issue myself, turns out for JW player you need to precede the path with the mp4: prefix.

So for your example the rtmp path to Cloud Front would be.

rtmp://xxxxxx.cloudfront.net/cfx/st/mp4:videos/18512/version1.flv

Figure you must have gotten past this due the age of the question. But since this came up in my search for an answer, figured to leave it for others who might find it as well.

葬花如无物 2024-10-26 09:05:56

这取决于您使用的播放器。使用 JW 播放器,您可以这样设置:

'file': 'yourfolder/yourmovie.mp4',
'streamer': 'rtmp://xxxxxxxx.cloudfront.net/cfx/st',

完整解释如何与 JW 播放器配合使用:http://www.miracletutorials.com/how-to-switch-from-low-resolution-video-to-hd -part-2/

此外,当您尝试公开传输时,您的文件夹可能是私有的。你检查了吗?

希望有帮助吗?

It depends which player you are using. With JW player you set it like this:

'file': 'yourfolder/yourmovie.mp4',
’streamer’: ‘rtmp://xxxxxxxx.cloudfront.net/cfx/st’,

Full explanation how this works with JW player: http://www.miracletutorials.com/how-to-switch-from-low-resolution-video-to-hd-part-2/

Also, it is possible that your folder is private while you try to stream public. Did you check that?

Hope that helps?

束缚m 2024-10-26 09:05:56

如果您使用的是 flowplayer 和 aws,则必须在插件中提供 netConnectionUrl:rtmp - 其他流媒体位置不需要您执行此操作。

playlist: [
         folder/flvItem //no longer has 'rtmp://somewhere.cloudfront.net/cfx/st', just the rest of the url
      ],
       plugins: {
           rtmp: {
               url: 'flowplayer.rtmp-3.1.3.swf'
               , netConnectionUrl: 'rtmp://somewhere.cloudfront.net/cfx/st' //must supply now
           },

If you are using flowplayer and aws, you must supply the netConnectionUrl in plugins : rtmp - other streaming locations did not require you to do this.

playlist: [
         folder/flvItem //no longer has 'rtmp://somewhere.cloudfront.net/cfx/st', just the rest of the url
      ],
       plugins: {
           rtmp: {
               url: 'flowplayer.rtmp-3.1.3.swf'
               , netConnectionUrl: 'rtmp://somewhere.cloudfront.net/cfx/st' //must supply now
           },
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文