https://github.com/moodrain/laravel-streamer
stream local video in Laravel
https://github.com/moodrain/laravel-streamer
Last synced: 3 months ago
JSON representation
stream local video in Laravel
- Host: GitHub
- URL: https://github.com/moodrain/laravel-streamer
- Owner: moodrain
- Created: 2020-03-10T23:42:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T15:35:21.000Z (about 5 years ago)
- Last Synced: 2025-02-15T07:39:59.398Z (4 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Install
```composer require moodrain/laravel-streamer```
#### Usage
```
use Moodrain\LaravelStreamer\Streamer;class Controller {
public function video() {
return Streamer::stream(storage_path('demo.mp4'));
}
}
```or see [demo](https://github.com/moodrain/laravel-streamer-demo)
#### Config
```
php artisan vendor:publish --provider="Moodrain\LaravelStreamer\ServiceProvider"
```edit ```config/laravel_streamer.php```
```
return [
'buffer' => 2 * 1024 * 1024
];
```set buffer size you wish, 2 MB is default size