Download the PHP package escolalms/video without Composer
On this page you can find all versions of the php package escolalms/video. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package video
Video
What does it do
Coverts TopicVideo into HLS stream.
Installing
composer require escolalms/video
Requirements
ffmpeg
must be installed- Once
EscolaLms\TopicType\TopicTypeChanged
is dispatched job ProccessVideo added to queue
Configuration
You can configure the quality and resolution of the processed video by setting values in config.php
file under the bitrates
key. The key takes arrays of values.
kiloBitrates
parameter is responsible for the video quality.scale
parameter is responsible for video resolution, setting this parameter may cause video distortion.
You can also disable video processing or change the drive.
Example config:
Example
This package extends API resources in EscolaLms\TopicType
package.
-
\EscolaLms\TopicTypes\Http\Resources\TopicType\Client\VideoResource
- replaces value and url fields with hls values \EscolaLms\TopicTypes\Http\Resources\TopicType\Admin\VideoResource
- adds hls values
The processing status is saved in the json field in the topics
table:
-
Processing successful
- Processing failed
Tests
Run ./vendor/bin/phpunit
to run tests. See tests folder as it's quite good staring point as documentation appendix.
Events
ProcessVideoStarted
- event dispatched after processing startedProcessVideoFailed
- event dispatched after processing failed
All versions of video with dependencies
escolalms/courses Version ^0
escolalms/topic-types Version ^0
escolalms/settings Version ^0
laravel/framework Version >=8.0
league/flysystem-aws-s3-v3 Version ^3
pbmedia/laravel-ffmpeg Version ^8