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 e.g. 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.