pinweb/qnlive

Qiniu Live for Laravel

1.0.1 2020-07-30 13:32 UTC

This package is auto-updated.

Last update: 2024-11-29 06:10:43 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

基于七牛直播官方 SDK 封装的 Laravel 扩展

安装

Via Composer

$ composer require pili-engineering/pili-sdk-php.v2:dev-master
$ composer require pinweb/qnlive

生成配置文件

$ php artisan vendor:publish --provider="Pinweb\Qnlive\QnliveServiceProvider"

使用

引用

use Pinweb\Qnlive;

创建流

Qnlive::hub()->create($stream);

流信息

Qnlive::hub()->stream($stream)->info();

启用流

Qnlive::hub()->stream($stream)->enable();

禁用流

Qnlive::hub()->stream($stream)->disable();

获取推流地址

Qnlive::pushUrl($stream);

获取播放地址

Qnlive::playUrl($stream);

更多使用方法参见官方 SDK

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email atan@pinweb.io instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.