vitta/php-aliyun-open-api-live
Composer 安装命令:
composer require vitta/php-aliyun-open-api-live
包简介
aliyunsdk
关键字:
README 文档
README
Installation
"vitta/php-aliyun-open-api-live": "~1.1.3"
to the require section of your composer.json.
使用方式
$live = new \aliyun\live\Client([
'accessKeyId' => '123456',
'accessSecret' => '123456'
'appName' => 'live',
'domain' => 'live.cctv.com',
'pushAuth' => '1234567',
'sidePushDomain' => 'your push url',
'sidePlayDomain' => 'you play url'
]);
//发送接口请求
$package = [
'Action' => 'DescribeLiveStreamsPublishList',
'DomainName' => 'live.cctv.com',
'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
];
$response = $live->createRequest($package);
print_r($response);
//非请求接口
生成推流地址
$live->getPushPath();
$live->getPushArg($uuid);
生成边缘推流地址
$live->getSidePushUrl($streamName)
//获取播放地址
$live->getPlayUrls($uuid);
获取边缘播放地址
$live->getPlayUrls($stream, true);
exit;
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2019-01-10