Skip to content

pinweb/qnlive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qnlive

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.

About

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

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages