mercredi 29 avril 2015

Media Streaming Help AWS Cloudfront Etc

Would really appreciate some help with the following i have been working with AWS for a while now to try and deliver a secure streaming experience but i seem to hit a hurdle at every step. I am just going to list them all some are really obvious.

Take the following. 1. Progressive streaming grabbing the public urls via Amazon S3 and streaming. (hurdle: user can just right click on most players and download, or open web inspector click network refresh the page and grab the url).

  1. Signing the urls with one of the sdk's

    $signedUrl = $client->getObjectUrl($bucket, 'video.mp4', '+10 minutes');

(hurdle: makes no real difference to the above the user can still copy the url in web inspector network tab and download)

  1. Using cloudfront RTMP and Amazon S3 (hurdle: works great for browser streaming relying on flash and there is no way to grab the url through inspect element and download, but this does need a fallback for mobile in which a mp4 would be needed to be provided you can open safari web developer tool set user agent to iphone refresh and get the url to download)

  2. Using HLS streaming (hurdle: works great on the browser and mobile but i hear it is not supported on some android devices, after playing around with this and creating a playlist i need to make all my segments public so someone could download each segment and then merge together i know i am being picky now)

I know this is possible because other people manage it i think the best way is to use the hls method and make the playlist.m3ub8 file signed with a real short time but if some can access the m3ub8 they can paste it into a service like this http://ift.tt/1w7949B and then view the video.

I know there is DRM which i am going to look into now, i just need to make my output files/segments encrypted within the web inspect element so they cannot be clicked this should solve a lot of my problems but cant find any good step by step tutorials on how to do this.

Can anyone give advise on their experiences?

Thanks




Aucun commentaire:

Enregistrer un commentaire