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

Meeting Status Change Notification

You can configure listeners for notifications related to meeting UI changes.

The UI is created when you join a meeting and destroyed when you leave the meeting.

Application Scenarios

Joining a meeting: onConfDetailNotify

Ending or leaving a meeting: onConfEnded or onLeaveConf

Poor network connection: onPoorNetworkQualityInfoNotify

Call records of instant meetings: onP2PConfRecord

Precautions

sdkConfig takes effect only when this configuration is passed during SDK initialization.

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class CustomNotifyHandler implements CLMNotifyHandler {

    @Override
    public void onConfDetailNotify(ConfInfo confInfo) {
        Log.i(TAG, "confInfo: confId" + confInfo.getConfId() + ", Subject:" + confInfo.getConfSubject());
    }

    @Override
    public void onPoorNetworkQualityInfoNotify(PoorNetWorkQualityInfo poorNetWorkInfo) {
        Log.i(TAG, " poorNetWorkInfo : " + poorNetWorkInfo.getUserId() + " , "
        + " , " + poorNetWorkInfo.getIsLocal() + " , " + poorNetWorkInfo.getVideoStatus() + " , "
        + poorNetWorkInfo.getAudioStatus() + " , " + poorNetWorkInfo.getShareStatus());
        DemoUtil.showToast("CLMNotifyHandler event: onPoorNetworkQualityInfoNotify ");
    }
 
    /**
     * Notifies you when a meeting ended.
     * @param result Indicates the error code returned after the meeting ended.
     */
    @Override
    public void onConfEnded(ConfEndedReason result) {
        Log.i(TAG, "The meeting has ended.");
    }
 
    @Override
    public void onLeaveConf(int result) {
        Log.i(TAG, "You've left the meeting.");
    }
}
sdkConfig.setNotifyHandler(new CustomNotifyHandler());