Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private HLS Live Stream - Generating a preview securely?

I have a private HLS URL. Users need to register/pay to view the stream.

However, I want to generate a short preview from this live stream so that users can watch a 10 seconds before asking them to sign up.

Is there a way to do this securely (or good enough security) without hosting a separate video?

like image 351
Andy Hin Avatar asked Jan 26 '26 12:01

Andy Hin


1 Answers

Yes, all you need to do is generate a separate playlist that only contains the preview segments.

Make sure your media segments aren't named sequentially... you don't want to make it too easy to go from segment to segment.

like image 84
Brad Avatar answered Jan 29 '26 07:01

Brad