An open API service indexing awesome lists of open source software.

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

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