Skip to content

Commit cde9c1a

Browse files
author
yutingzeng
committed
增加进房权限构造userbuf说明
1 parent 5b5eb5c commit cde9c1a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

TLSSigAPIv2.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ var Api = function(sdkappid, key) {
3939
this.sdkappid = sdkappid;
4040
this.key = key;
4141
};
42+
/**用于生成实时音视频(TRTC)业务进房权限加密串,具体用途用法参考TRTC文档:https://cloud.tencent.com/document/product/647/32240
43+
* TRTC业务进房权限加密串需使用用户定义的userbuf
44+
* @brief 生成 userbuf
45+
* @param account 用户名
46+
* @param dwSdkappid sdkappid
47+
* @param dwAuthID 数字房间号
48+
* @param dwExpTime 过期时间:该权限加密串的过期时间,建议300秒,300秒内拿到该签名,并且发起进房间操作
49+
* @param dwPrivilegeMap 用户权限,255表示所有权限
50+
* @param dwAccountType 用户类型,默认为0
51+
* @return userbuf {string} 返回的userbuf
52+
*/
4253
Api.prototype._getUserbuf = function (account, dwAuthID, dwExpTime,
4354
dwPrivilegeMap, dwAccountType){
4455

0 commit comments

Comments
 (0)