Stream Video from secured S3 bucket to videogular

I have a web application based on AWS. The client is written in JavaScript with Angular 1.5.3

User log in in this app via a Cognito Userpool. That works fine. Some users are able to upload videos and images to a secured S3 bucket. That is also working fine. Now I already implemented the functionality to display images from this secured bucket. Also successful.

Next step is to stream the videos to the browser of logged in users. I want to use eg videogular. I have two ideas:

  • determine the exact URI of the video and pass it to videogular. This will work for public S3 buckets, but not for secured ones.
  • 'somehow' load the video via the AWS JS SDK (which always sets correct auth headers) and stream this to the Html5 website. I have no idea how this could work ...
  • I think this is a quite regular use case - so maybe someone can help me or point me in the right direction?

    I already found this tutorial: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/TutorialStreamingJWPlayer.html But unfortunately this is of little use, as it describes how to stream from public buckets.


    Take a look at this article on how you can serve your private content through CloudFront using signed URLs or signed cookies.

    The SDK allows you to generate the signed cookies for each logged in user, which allow them to stream any (private) video, or create a signed URL for individual resources / videos. You can find more info on how to create signed cookies/URLs using the SDK here.

    链接地址: http://www.djcxy.com/p/68476.html

    上一篇: Swift 3:如何为HLS Streaming设置JWPlayer的多个Cookie

    下一篇: 将视频从安全S3存储区流式传输到视频