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.
22
22
使用方式
23
23
------------
24
24
```
25
- $client = new \aliyun\live\Client([
25
+ $live = new \aliyun\live\Client([
26
26
'accessKeyId' => '123456',
27
27
'accessSecret' => '123456'
28
+ 'appName' => 'live',
29
+ 'domain' => 'live.cctv.com',
30
+ 'pushAuth' => '1234567',
28
31
]);
32
+
33
+ //发送接口请求
29
34
$package = [
30
35
'Action' => 'DescribeLiveStreamsPublishList',
31
36
'DomainName' => 'live.cctv.com',
32
37
'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
33
38
'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
34
39
];
35
- $response = $client ->createRequest($package);
40
+ $response = $live ->createRequest($package);
36
41
print_r($response);
42
+ //非请求接口
43
+ 生成推流地址
44
+ $live->getPushPath();
45
+ $live->getPushArg($uuid);
46
+
47
+ //获取播放地址
48
+ $live->getPlayUrls($uuid);
49
+
37
50
exit;
38
51
```
You can’t perform that action at this time.
0 commit comments