Constructor
new TRTCSwitchRoomParam(roomId, strRoomId, userSig, privateMapKey)
This parameter is used for the room switch API switchRoom
, which can quickly switch a user from one room to another.
Parameters:
Name | Type | Description |
---|---|---|
roomId |
Number |
required
numeric room ID, which is optional. Users in the same room can see one another and make audio/video calls.
[Note] either |
strRoomId |
String |
required
string-type room ID, which is optional. Users in the same room can see one another and make audio/video calls. |
userSig |
String |
required
user signature, which is optional. It is the authentication signature corresponding to the current |
privateMapKey |
String |
required
permission credential used for permission control, which is optional. If you want only users with the specified |