Skip to content

Commit 3570a59

Browse files
author
yutingzeng
committed
增加进房权限构造userbuf说明
1 parent cb04c36 commit 3570a59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/TLSSigAPIv2.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ private function base64_url_decode($base64) {
4848
}
4949
return $result;
5050
}
51+
/**用于生成实时音视频(TRTC)业务进房权限加密串,具体用途用法参考TRTC文档:https://cloud.tencent.com/document/product/647/32240
52+
* TRTC业务进房权限加密串需使用用户定义的userbuf
53+
* @brief 生成 userbuf
54+
* @param account 用户名
55+
* @param dwSdkappid sdkappid
56+
* @param dwAuthID 数字房间号
57+
* @param dwExpTime 过期时间:该权限加密串的过期时间,建议300秒,300秒内拿到该签名,并且发起进房间操作
58+
* @param dwPrivilegeMap 用户权限,255表示所有权限
59+
* @param dwAccountType 用户类型,默认为0
60+
* @return userbuf string 返回的userbuf
61+
*/
5162
public function getUserBuf($account,$dwAuthID,$dwExpTime,$dwPrivilegeMap,$dwAccountType) {
5263
//视频校验位需要用到的字段
5364
/*

0 commit comments

Comments
 (0)