Updated on 2022-10-27 GMT+08:00

API Call in Typical Scenarios

API Description

Electron SDK APIs are classified into active calling synchronous APIs, active calling asynchronous APIs, and subscription and notification APIs.

Active calling synchronous APIs: The application actively calls these APIs to complete tasks. For example, the Init API is called for initialization.

Active calling asynchronous APIs: The application actively calls APIs and the SDK processes internal tasks asynchronously. After a task is processed, the SDK notifies the application in API callback mode. For example, the input parameters of the API for creating a meeting include the parameters required for creating a meeting and the onCreateConfResult callback function of the meeting creation result.

Subscription and notification APIs: For an event notification triggered by the Huawei Cloud Meeting server or SDK, after the corresponding subscription API is called, the SDK notifies the application through the notification API. For example, the setOnConfListChangedCB notification API for subscribing to the meeting list.

API Call in Typical Scenarios

Figure 1 API call in typical scenarios

1. Generally, the process needs to be killed before application upgrade. To facilitate upgrade management on the Windows 64-bit platform, change the name of the HwmSdk.exe file in the HwmSdk folder to your own name before initialization. (Ignore this note if you use other platforms.)

2. Login is not mandatory. You can use the meeting ID and password to join a created meeting without login.

3. The UI of the current SDK provides functions of leaving and ending a meeting. If you do not need to control these functions, you do not need to call APIs for leaving and ending a meeting.

4. After a meeting starts, the onConfInfoNotify notification of the subscribed-to meeting information is reported for multiple times.