1.1 KiB
1.1 KiB
Here are some details and tips specific to using S3 for storage.
File expiration
You should expire old segments on your S3 bucket. Here are some instructions on how to do that.
- Once an object expires you won't be charged for storage, even if the object isn't deleted immediately.
- A one day object expiration lifecycle rule on objects is as low as you can go, so use that.
- Because AWS rounds the expiration to midnight of the next day you may have a lot of old video chunks sitting around. You can make the most of this by increasing the
maxNumberInPlaylist
value in your config file to something much higher, allowing users to rewind your stream back in time further. If the video is available then you might as well make it available to your users.
CORS
- Ugh. CORS. You will need to enable CORS on your bucket so the web player can access the video.