RoomUser Overview
RoomUser
The RoomUser class is a user class within the TKRoomSDK. It defines the relevant attributes of a user. Here are the properties and methods defined in the class:
Property Name |
Property Description |
peerID |
User ID(String) |
nickName |
User Nickname(String) |
role |
User Role(Int) |
hasAudio |
Whether there is a microphone(Boolean) |
hasVideo |
Whether there is a camera(Boolean) |
canDraw |
Whether there is the permission to draw on the whiteboard(Boolean) |
publishState |
Publishing Status(Int) |
properties |
Other attributes that can be customized(String) |
disableVideo |
Whether the camera is disabled(Boolean) |
disableAudio |
Whether the microphone is disabled(Boolean) |
Method Name |
Method Description |
getPublishState |
Get the video’s publishing status |
isEnableDualStream |
Whether to enable large and small streams |