File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,30 @@ to the require section of your composer.json.
2222使用方式
2323------------
2424```
25- $client = new \aliyun\live\Client([
25+ $live = new \aliyun\live\Client([
2626 'accessKeyId' => '123456',
2727 'accessSecret' => '123456'
28+ 'appName' => 'live',
29+ 'domain' => 'live.cctv.com',
30+ 'pushAuth' => '1234567',
2831]);
32+
33+ //发送接口请求
2934$package = [
3035 'Action' => 'DescribeLiveStreamsPublishList',
3136 'DomainName' => 'live.cctv.com',
3237 'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
3338 'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
3439];
35- $response = $client ->createRequest($package);
40+ $response = $live ->createRequest($package);
3641print_r($response);
42+ //非请求接口
43+ 生成推流地址
44+ $live->getPushPath();
45+ $live->getPushArg($uuid);
46+
47+ //获取播放地址
48+ $live->getPlayUrls($uuid);
49+
3750exit;
3851```
You can’t perform that action at this time.
0 commit comments