Start raw recording of new joined users "onUserJoin"

I use meetingsdk-linux-raw-recording-sample and try to start recording new users that connected after zoom bot. I tried to use void MeetingParticipantsCtrlEventListener::onUserJoin(IList<unsigned int >* lstUserID, const zchar_t* strUserList ){}, but It is return data like this

backend-1        | !!!!!!!!!!!!!! USER JOINED !!!!!!!!!!!!!!
backend-1        | !!!!!!!!!!!!!! LIST OF USERS !!!!!!!!!!!!!!!
backend-1        | 16779264
backend-1        | W!!!!!!!!!!!!!! USER JOINED !!!!!!!!!!!!!!
backend-1        | !!!!!!!!!!!!!! LIST OF USERS !!!!!!!!!!!!!!!
backend-1        | 	16778240

This is I like a user and my bot, after this when I connect from another account nothing happend. What can I do for process new users? @chunsiong.zoom

adding @MaxM to comment on this

Meanwhile @emotioniq would you cross reference the code sample here as well?

I try to add code in demo/MeetingParticipantsCtrlEventListener.cpp file in this part

/// \brief Callback event of notification of users who are in the meeting.
	/// \param lstUserID List of the user ID. 
	/// \param strUserList List of user in json format. This function is currently invalid, hereby only for reservations.
void MeetingParticipantsCtrlEventListener::onUserJoin(IList<unsigned int >* lstUserID, const zchar_t* strUserList ){ }

and it looks like

void MeetingParticipantsCtrlEventListener::onUserJoin(IList<unsigned int >* lstUserID, const zchar_t* strUserList ){
    std::cout<<"!!!!!!!!!!!!!! USER JOINED !!!!!!!!!!!!!!"<<std::endl;
    std::cout<<"!!!!!!!!!!!!!! LIST OF USERS !!!!!!!!!!!!!!!"<<std::endl;
    for(int i=0; i<lstUserID->GetCount(); i++) {
        std::cout<<lstUserID->GetItem(i)<<std::endl;
    }
}

and when after bot joined someone connect to meeting this code doesn’t work

@emotioniq another strategy would be

On bot meeting join

  1. Get all participants in the meeting
  2. For each participant in 1, subscribe to their video.
  3. Subsequently subscribe to videos for onUserJoin and unsubscribe for onUserLeft

@chunsiong.zoom But onUserJoin doesn’t respond to new users who connected after the bot

Hey @emotioniq ,

We use the Linux SDK extensively to power our meeting bots and have faced similar issues before. To help debug this, a few clarifying questions:

  • How are you joining as the second participant?
  • Are you actually leaving, and then re-joining as the same participant? Or, are you joining as a second participant from a separate device?

Depending on how you’re testing this and handling the leave case, this could explain the issue you’re seeing but it’s hard to say without further information.


Another alternative is to use Recall.ai for your meeting bots instead. It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video, participant event webhooks, metadata, and more from meetings in a few lines of code, bypassing the need to spend months to build, scale and maintain these bots yourself.

Let me know if you have any questions!

@amanda-recallai I connect as second participant from another device and another account

@emotioniq in other words, the onuserjoin event is not firing, or are you unable to subscribe to raw video from onuserjoin event?

@chunsiong.zoom onUserJoin event is not firing

@chunsiong.zoom @amanda-recallai I need this so much! Do you have solution for this one?