Report this

What is the reason for this report?

How to access private hls segments on DO Spaces from m3u8 list for VOD

Posted on February 10, 2021

I am using a Space API on DO and AWS s3 through a PHP library. I have a private folder of ts segments and a m3u8 list. I use a signed Url to serve the m3u8, but can’t figured out how to access the ts fragments listed on the m3u8 file. I do certainly not want give public access to the stored files. Thanks for any suggestion.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

To serve your ts fragments without providing public access, you could generate signed URLs for each of your ts fragments, similar to how you’re serving your m3u8 list.

Generally speaking, your application would serve the m3u8 file which contains the signed URLs of the ts fragments, thus allowing authorized users to access the fragments while keeping them private.

DigitalOcean Spaces API Documentation

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.