Skip to content

Commit e6a9af6

Browse files
committed
继续完善
1 parent fa675c2 commit e6a9af6

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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);
3641
print_r($response);
42+
//非请求接口
43+
生成推流地址
44+
$live->getPushPath();
45+
$live->getPushArg($uuid);
46+
47+
//获取播放地址
48+
$live->getPlayUrls($uuid);
49+
3750
exit;
3851
```

0 commit comments

Comments
 (0)