{"repo":"achyutkneupane/laravel-hls","free":true,"listed":false,"github":"https://github.com/achyutkneupane/laravel-hls","clone":"git clone https://github.com/achyutkneupane/laravel-hls.git","description":"A package to convert video files to HLS with rotating key encryption.","language":"PHP","stars":131,"topics":["aes-128","ffmpeg","hls","laravel","streaming","video","hacktoberfest"],"license":"MIT","category":"media-processing","readme_excerpt":"Laravel HLS laravel-hls is a Laravel package for converting video files into adaptive HLS (HTTP Live Streaming) streams using ffmpeg , with built-in AES-128 encryption, queue support, and model-based configuration. This package makes use of the laravel-ffmpeg package to handle video processing and conversion to HLS format. It provides a simple way to convert video files stored in your Laravel application into HLS streams, which can be used for adaptive bitrate streaming. Installation You can install the package via Composer: You must publish the configuration file using the following command: The configuration file is required to set-up the aliases for the models that will use the HLS conversion trait. Usage You just need to add the ConvertsToHls trait to your model. The package will automatically handle the conversion of your video files to HLS format. HLS playlist To fetch the HLS playlist for a video, you can call the endpoint /hls/{model}/{id}/playlist or route('hls.playlist', ['model' = 'video', 'id' = $id]) where $model is an instance of your model that uses the ConvertsToHls trait and $id is the ID of the model you want to fetch the playlist for. This will return the HLS playlist in m3u8 format. Registering Routes By default, the package registers the HLS playlist routes automatically. If you want to disable this behavior, you can set the register routes option to false in your config/hls.php file. And to create your own routes, you can use the HLSService class to gene","default_branch":null,"files":null,"tree":[],"storefront":"/r/achyutkneupane","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/achyutkneupane/laravel-hls/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}