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

Obtaining the Participant List

GetAttendeeList

API Description

This API is used to obtain the participant list in a meeting.

Precautions

  1. This API can be called only during a meeting.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode GetAttendeeList();

Callback Function

1
virtual void OnGetAttendeeListResult(const HwmAttendeeInfo* attendeeList, unsigned int length) override{};

Parameter Description

HWMAttendeeInfo parameters

Table 1 ConfAttendeeState description

Parameter

Description

CONF_ATTENDEE_STATE_IN_CONF

The participant is in the meeting.

CONF_ATTENDEE_STATE_CALLING

The participant is being called.

CONF_ATTENDEE_STATE_LEAVED

The participant has left the meeting.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
/**
* Obtaining the Participant List
*/
void demoSettingDlg::OnBnClickedButtonGetAttendeelist()
{
     hwmsdkagent::GetAttendeeList();
}

/**
* Callback for obtaining the participant list.
*/

void demoCallbackProc::OnGetAttendeeListResult(const HwmAttendeeInfo* attendeeList, unsigned int length)
{
     std::vector< HwmAttendeeInfo> attendeeListInfo(attendeeList, attendeeList + length);
}