400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

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:

    • Main attributes
    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)
    • Main method
    Method Name Method Description
    getPublishState Get the video’s publishing status
    isEnableDualStream Whether to enable large and small streams