Enum TRTCRoleType
2.2 Role (available only if TRTCAppScene
is set to TRTCAppSceneLIVE
or TRTCAppSceneVoiceChatRoom
)
ln live streaming scenarios, the majority of users are audience and only a small number publish streams. Distinguishing them by giving each user a role allows TRTC to better optimize its features based on different roles.
- Anchor: Anchors can publish audio and video. Up to 50 users in a room can publish audio and video at the same time.
- Audience: Audience can play but cannot publish audio or video. There is no upper limit on the audience size in a room.
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public enum TRTCRoleType
Fields
Name | Description |
---|---|
TRTCRoleAnchor | Anchor |
TRTCRoleAudience | Audience |