Hey all, wondering if someone around here has any idea about using Amazon s3 for video hosting. My main problem is the security part. I have a WordPress installation with an authenticated member only section. I am unsure however of how to make use of the authenticated ACL setting on Amazon s3 so that only logged in members with the right level have access to view these embedded videos hosted on Amazon.
After a while I figured this out. The best way to tackle the problem is to first have a member system where only authenticated users can access the content and embedded files. Then all you need to do is include the media via an expiring url. Here is the PHP snippet I used:
Make sure the ACL file settings are set to private. A member can then access the link to download the file/watch a video. If they copy the url of the media they cannot share with friends because the link only lasts for a set period of time.