CloudFront - 流式分发 - 忽略不在根目录中的文件
我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我自己也被这个问题困扰,事实证明,对于 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.
这取决于您使用的播放器。使用 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?
如果您使用的是 flowplayer 和 aws,则必须在插件中提供 netConnectionUrl:rtmp - 其他流媒体位置不需要您执行此操作。
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.