400-881-9892

文档中心

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

文档中心 互动课堂

RoomUser

    RoomUser Class

    Overview

    User Instance Object Class ### Publishing Status

    Publishing status, no audio or video and off the stage public static final int PUBLISH_STATE_NONE = 0;

    Publishing status, audio only  public static final int PUBLISH_STATE_AUDIOONLY = 1;

    Publishing status, video only public static final int PUBLISH_STATE_VIDEOONLY = 2;

    Publishing status, both audio and video public static final int PUBLISH_STATE_BOTH = 3;

    Publishing status, neither audio nor video, but on stage public static final int PUBLISH_STATE_MUTE_ALL = 4;

    Publishing status, local display stream public static final int PUBLISH_STATE_LOCAL = 5;

    Attribute
    • peerID

    User ID String peerId;

    • nickName

    User nickname String nickName;

    • role

    User identity, 0: teacher; 1: teaching assistant; 2: student; 3: auditor; 4: invisible user @RoomRole.ROLE int role;

    • hasAudio

    Whether the user has enabled audio device permissions boolean hasAudio;

    • hasVideo

    Whether the user has enabled video device permissions boolean hasVideo;

    • canDraw

    Whether the user has the right to draw on the whiteboard and documents  boolean canDraw;

    • publishState

    The user’s publishing status, 0: not published, 1: publish audio; 2: publish video; 3: publish audio and video  @property (nonatomic, assign) TKPublishState publishState;

    • properties

    Legacy attribute ConcurrentHashMap *properties;

    • disableVideo

    Whether the user has disabled the video device boolean disableVideo;

    • disableAudio

    Whether the user has disabled the audio device boolean disableAudio;