PHP code example of iamriajul / laravel-bunny-stream-filesystem-adapter
1. Go to this page and download the library: Download iamriajul/laravel-bunny-stream-filesystem-adapter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
iamriajul / laravel-bunny-stream-filesystem-adapter example snippets
'bunny_stream' => [
'driver' => 'bunny_stream',
'hostname' => env('BUNNY_STREAM_HOSTNAME'),
'library_id' => env('BUNNY_STREAM_LIBRARY_ID'),
'api_key' => env('BUNNY_STREAM_API_KEY'),
],
$videoId = Storage::disk('bunny_stream')->put('abc.mp4', file_get_contents('abc.mp4'));
// $videoId = guid from bunny.
// Enable Direct File Access from Bunny to Access m3u8
return response(Storage::disk('bunny_stream')->get("$videoId/playlist.m3u8"));