Updated on 2025-04-18 GMT+08:00

Obtaining the Event List

API Description

This API is used to return the list of names of events that can be listened to.

Precautions

This API is an asynchronous API. The return value only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
getEventList():string[]

Parameter Description

None

Return Values

Table 1 Return values

Type

Description

string[]

List of events that can be listened to.

Table 2 Event list description

Event Name

Description

Condition

join_conf_result

Notification of the meeting joining result.

Triggered after the meeting joining API is called.

leave_conf_result

Notification of the meeting leaving result.

Triggered when you leave a meeting. For example, you are removed from the meeting by the host or the meeting ends.

receive_hangup_notify

Notification of passively leaving a meeting.

Triggered after a hang-up message is received.

conf_config_changed

Notification of the meeting status change.

Triggered after the meeting control status changes.

view_config_changed

Notification of the meeting view change.

Triggered after the view status changes.

Sample Code

// Create a listener.
let listener = HWMeeting.createEventListener();
// Listen to a specific event.
HWMeeting.getEventList().forEach(event => {
      listener.on(event, (eventData) => {
        console.log(event, JSON.stringify(eventData));
      });
});