Updated on 2024-07-30 GMT+08:00

Obtaining Your Role in a Meeting

Function

This API is used to obtain your role in a meeting (valid only for the macOS platform).

Function Prototype

getSelfRole(onGetSelfRoleResult?: (ret: SDKERR, reason: string, selfRole: ConfRole) => void): voidgetSelfRole(onGetSelfRoleResult?: (ret: SDKERR, reason: string, selfRole: ConfRole) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onGetSelfRoleResult Yes (ret: SDKERR, reason: string, selfRole: ConfRole) => void Callback for obtaining the role in the meeting.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string, selfRole: ConfRole) => void

Table 2 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.
selfRole ConfRole Role in the meeting.
Table 3 Enumerated values of ConfRole
Enumeration Name Enumerated Value Description
HWM_CONF_ROLE_ATTENDEE 0 Common participant.
HWM_CONF_ROLE_HOST 1 Host.
HWM_CONF_ROLE_AUDIENCE 2 Attendee.
HWM_CONF_ROLE_COHOST 3 Co-host.
HWM_CONF_ROLE_WAITING 4 Waiting room member.