role property

TRTCRoleType role
getter/setter pair
  • Field description: role in the live streaming scenario. The SDK uses this parameter to determine whether the user is an anchor or an audience user. This parameter is required in the live streaming scenario and optional in the call scenario.
  • Note: this parameter is applicable only to the live streaming scenario (TRTCAppScene.live or TRTCAppScene.voiceChatRoom) and doesn't take effect in the call scenario (AUDIOCALL or VIDEOCALL).
  • Recommended value: default value: anchor

Implementation

TRTCRoleType role;