tencent cloud

Tencent Cloud AI Digital Human

문서Tencent Cloud AI Digital Human

Obtaining the Key to the TRTC Room

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-07-19 10:14:53
When a live session is created and the TRTC protocol is selected, this API is used by users other than the Digital Human to obtain the key for entering the room.
Note:
This only applies to situations where the internal TRTC account of the digital human is used.

Calling Protocol

HTTPS + JSON
POST /v2/ivh/sessionmanager/sessionmanagerservice/gettrtcsign
Header Content-Type: application/json;charset=utf-8

Request Parameters

Parameter name
Required
Type
Description
ReqId
Yes
String
Unique identifier for a single request.
SessionId
Yes
string
Session ID.
RoomId
Yes
string
The room ID, obtained through API 4.1 and parsed from the returned addr address.
UserId
Yes
string
User ID for entering the room.

Response Parameter

Parameter name
Required
Type
Description
ReqId
Yes
String
Unique identifier for a single request.
UserSig
Yes
string
Room Key.
PrivateMapKey
Yes
string
Permission Key.

Request Sample

{
"Header": {},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"SessionId": "12123132",
"RoomId": "1200111",
"UserId": "avcvdafasfds",
}
}

Response Sample

{
"Header": {
"Code": 0,
"Message": "",
"RequestID": "123",
},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"UserSig": "vafdasfda",
"PrivateMapKey": "fdasfdafdasfdasfd"
}
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백