Install via Composer
composer require imanghafoori/laravel-video
<?php
use Iman\Streamer\VideoStreamer;
Route::get('/home', function () {
$path = public_path('vid.mp4');
VideoStreamer::streamFile($path);
});
That's it ! you can play your video file !
You do not need to return
from your controller
- Laravel: v5.1 or above
- Php: 7.2 or above
If you find an issue, or have a better way to do something, feel free to open an issue or a pull request.
As always if you found this package useful and you want to encourage us to maintain and work on it. Just press the star button to declare your willingness.
π A minimal yet powerful package to give a better structure and caching opportunity for your laravel apps.
π Test your laravel application without writing tests!