Category: Laravel, PHP

The Laravel FFmpeg package has supported HLS for over four years. With the Laravel package, you can convert a single video into an HLS export that contains multiple bitrates and resolutions.

As the segments are unplayable without the encryption keys, you can put the keys behind authentication and authorization to limit the accessibility of your video content. Adding single-key encryption to an HLS export is just two extra lines of code: If you want to use multiple keys, you need to store the auto-generated keys with a callback: You might be wondering: how does the browser handle the playback when the media segments and encryption keys are stored on different disks?

HLS uses playlists, which hold references to all different segments and encryption keys.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners