Struct TRTCSwitchRoomConfig
Room switching parameters
Inherited Members
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct TRTCSwitchRoomConfig
Fields
privateMapKey
Description: room signature (optional). You can use this parameter to allow only specified users (userId
) to enter a room.
Value: Use this parameter only if you have high security requirements. For more information, please see Enabling Advanced Permission Control.
Declaration
public string privateMapKey
Field Value
Type | Description |
---|---|
System.String |
roomId
Description: numeric room ID (required). Users in the same room can see one another and have a video call. Value: a custom value, which must be unique. You can use the user ID of the room creator – if it is numeric – as the room ID.
Declaration
public int roomId
Field Value
Type | Description |
---|---|
System.Int32 |
strRoomId
Description: string-type room ID. Users in the same room can see one another and make a video call.
Value: 64 bytes or shorter; support the following character set (89 characters)
Note: You must specify either roomId
or strRoomId
. If you use string-type room IDs, set roomId
to 0
. If both parameters are set, roomId
will be used.
Declaration
public string strRoomId
Field Value
Type | Description |
---|---|
System.String |
userSig
Description: user signature of the current user (required), which functions as the login password Value: For how to calculate user signatures, please see UserSig.
Declaration
public string userSig
Field Value
Type | Description |
---|---|
System.String |