Like to know if anyone been able to stream HLS video via AWS Cloudfront with Signed URL.
My experience so far is, it is not possible. AWS documentation is not clear. AWS Forum is silent.
I seem to be able to get the first file ( .m3u8 ) then it stops. Using JW player, which complains cannot get media file.
If answer is yes, please point me in the right direction.
Thanks.
The scenario with unsigned URLs will most definitely work. I've successfully segmented video streams with ffmpeg onto S3 and served from CF. It's all HTTP after all.
If you wish to restrict access to your HLS content, your playlist file would need to include signed URLs as well. You would typically compute these as the playlist is requested, based on whatever credentials you wish to authenticate the user with. Thus, you need a server-side implementation that generates session-unique m3u8's for you in order for the signed-URL scheme to make sense.
Depending on your needs, another option would be to look into DRM. JW Player supports single/rotating key fragment decryption, which arguably tends to be a more complicated solution. You would then be left with the matter of securely distributing decryption keys to your clients.
I hope this somewhat addresses your concerns. If not, feel free to leave a comment.
Use signed URLs in the following cases:
Use signed cookies in the following cases:
You want to provide access to multiple restricted files, for example, all of the files for a video in HLS format or all of the files in the subscribers' area of a website.
You don't want to change your current URLs.
For more : http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-choosing-signed-urls-cookies.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With