You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
692 B
29 lines
692 B
11 months ago
|
<?php
|
||
|
require_once __DIR__ . '/../../autoload.php';
|
||
|
|
||
|
use Qiniu\Auth;
|
||
|
use Qiniu\Rtc\AppClient;
|
||
|
|
||
|
// 控制台获取密钥:https://portal.qiniu.com/user/key
|
||
|
$accessKey = getenv('QINIU_ACCESS_KEY');
|
||
|
$secretKey = getenv('QINIU_SECRET_KEY');
|
||
|
|
||
|
$auth = new Auth($accessKey, $secretKey);
|
||
|
$client = new AppClient($auth);
|
||
|
|
||
|
// app 的唯一标识,创建的时候由系统生成
|
||
|
$appId = 'xxxx';
|
||
|
|
||
|
// 房间名称
|
||
|
$roomName = 'room01';
|
||
|
|
||
|
// 停止一个房间的合流转推
|
||
|
// 参考文档:https://doc.qnsdk.com/rtn/docs/server_overview#2_2
|
||
|
|
||
|
list($ret, $err) = $client->stopMerge($appId, $roomName);
|
||
|
if ($err !== null) {
|
||
|
var_dump($err);
|
||
|
} else {
|
||
|
echo "\n====> Stop Merge Successfully \n";
|
||
|
}
|