Why function onChatMsgNotifcation not be called back?

I just added a little debug code in function onChatMsgNotifcation which in a subclass of IMeetingChatCtrlEvent. Then builded and run sdk_demo and sdk_demo_v2. When I join a meeting, everything is ok except the function onChatMsgNotifcation not be called back.

Why?

I have tried some other callback event like onUserNameChanged, onChatStautsChangedNotification, them work fine.

Detailed Description

  1. SDK version is windows v4.6.21666.0428, download from github on 2020.5.25.

  2. Sequence of operating sdk_demo: Start a meeting by zoom client(5.0.4(2569.0524)) on other PC -> run sdk_demo -> SetDomain->Auth->API User->Join->OK->join in the meeting after host permission -> show the meeting ui -> chat on the zoom’s client -> no debug output.

  3. Sequence of operating sdk_demo_v2: Start a meeting by zoom client(5.0.4(2569.0524)) on other PC -> run sdk_demo_v -> SetDomain->Auth->Ony Join->join->join in the meeting after host permission -> show the meeting ui -> chat on the host’s zoom client -> no debug output.

I just add debug print code in onChatMsgNotifcation, as show below:

By the way, is it related to the Change Notification (WINDOWS SDK Interface Change Notification) which say: “move onChatMsgNotifcation from IMeetingServiceEvent to IChatCtrlEvent”?

Thanks.

I have find out why.

All the test above is join the meeting which enable meeting waiting room. After I read the post(Zoom SDK with Custom UI support sdk_demo_v2 crashes in CreateVideoElement when element type is VideoRenderElement_ACTIVE) , I tried disable the meeting waiting room, then sdk_demo and sdk_demo_v2’s work well and onChatMsgNotifaction all be called back.

Then I find some status changed in IMeetingServiceEvent.onMeetingStatusChanged.
For the meeting which enable the waiting room

  1. Joint the meeting.
  2. In onMeetingStatusChanged: status=MEETING_STATUS_CONNECTING
  3. Host premit in
  4. In onMeetingStatusChanged: status=MEETING_STATUS_INMEETING
  5. In onMeetingStatusChanged: status=MEETING_STATUS_RECONNECTING
  6. In onMeetingStatusChanged: status=MEETING_STATUS_CONNECTING
  7. In onMeetingStatusChanged: status=MEETING_STATUS_INMEETING
    However for the meeting which distable the waiting room, step 3~7 is not exist.

So I try GetMeetingChatController() and setEvent again after step 7 when join meeting which enable waitting room, function OnChatMsgNotifaction work fine. By the way, The pointer to MeetingChatController object from GetMeetingChatController() no change when reconnect the meeting.

Thinks for the post’s author virupaksha.h

Hi @ZhangLiChao,

Thanks for the post and the detailed information. The interfaces and callbacks that are related to chat is not available while the participant is in the waiting room, this is by design. The corresponding interfaces and callbacks will only be available when the meeting status is “In meeting”.

On the other hand, when leaving the waiting room and join the main session is a process of leaving the meeting and then rejoin the meeting, that is the reason why you observed the changes 3-7.

Hope this helps. Thanks!

Thank you very much.

1 Like