华为云会议 MEETING-会议状态变更通知

时间:2024-10-28 14:49:33

会议状态变更通知

在OpenSDKConfig中配置会议UI页面变更相关的通知监听

入会的时候UI创建,离会的时候销毁UI

使用场景

入会场景:onConfDetailNotify

离会场景:onConfEnded、onLeaveConf

弱网提示:onPoorNetworkQualityInfoNotify

立即会议通话记录通知:onP2PConfRecord

注意事项

SDK初始化的时候必须传入这个配置sdkConfig才会生效

示例代码
 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 事件: onPoorNetworkQualityInfoNotify ");
    }
 
    /**
     * 会议结束后,会收到通知
     * @param result 会议结束后的错误码
     */
    @Override
    public void onConfEnded(ConfEndedReason result) {
        Log.i(TAG, "会议已结束");
    }
 
    @Override
    public void onLeaveConf(int result) {
        Log.i(TAG, "您已离开会议");
    }
}
sdkConfig.setNotifyHandler(new CustomNotifyHandler());
support.huaweicloud.com/sdkreference-meeting/meeting_22_0127.html