Zoom Meeting SDK - Auto user joining issue

@chunsiong.zoom

Hi , So I’ve implemented the onReminderNotify cb for the c# wrapper

I see no logs , It means this cb is not triggered I guess could be two reasons to that , Either I implemented it wrong in the c++ or there is no meeting reminder prompt that blocks the bot from joining.

An important thing to say is that if I run manually the c# wrapper from the visual studio as Windows application with UI forms , I can join to the meeting after setting the meeting id and password and generating JWT token , But when running as a background process it still doesn’t work and again , It used to.

@chunsiong.zoom

Hi ,

Any news ?

@eladw before joining meeting, I’m doing something like this
I’m also providing the sample for MeetingReminderListener cpp and h file.

	// set event listnener for prompt handler 
	IMeetingReminderController* meetingremindercontroller = m_pMeetingService->GetMeetingReminderController();
	MeetingReminderEventListener* meetingremindereventlistener = new MeetingReminderEventListener();
	meetingremindercontroller->SetEvent(meetingremindereventlistener);

MeetingReminderListener.cpp

#include "MeetingReminderEventListener.h" // Include the header file you've created
#include <stdlib.h>
#include <iostream>

// You might need to include additional headers here if required

// Implement any necessary functions or methods

// This is just a placeholder implementation to show how the header might be used

    MeetingReminderEventListener::MeetingReminderEventListener(){}

     void MeetingReminderEventListener::onReminderNotify(ZOOMSDK::IMeetingReminderContent* content, ZOOMSDK::IMeetingReminderHandler* handle) 
    {
        if (content)
        {
            // Handle the reminder dialog content
            ZOOMSDK::MeetingReminderType type = content->GetType();
            const zchar_t* title = content->GetTitle();
            const zchar_t* dialogContent = content->GetContent();
            bool isBlocking = content->IsBlocking();
            std::cerr << "title :"  << title<< std::endl;
             std::cerr << "dialogContent :"  << dialogContent<< std::endl;
            // You can implement your logic here based on the reminder type, title, content, and whether it's blocking
            
            // For demonstration, let's print the reminder details
          
            // wprintf(L"Reminder Type: %d\n", type);
            // wprintf(L"Title: %ls\n", title);
            // wprintf(L"Content: %ls\n", dialogContent);
            // wprintf(L"Is Blocking: %s\n", isBlocking ? L"Yes" : L"No");
            
            // Handle the reminder actions (ignore, accept, decline) if needed
            if (handle)
            {
                // For demonstration, let's accept the reminder
                handle->Accept();
            }
        }
    }

MeetingReminderListener.h
#include “meeting_service_components/meeting_reminder_ctrl_interface.h” // Assuming this header includes the required definitions
#include “zoom_sdk.h”

class MeetingReminderEventListener : public ZOOM_SDK_NAMESPACE::IMeetingReminderEvent
{
public:
MeetingReminderEventListener();

virtual void onReminderNotify(ZOOMSDK::IMeetingReminderContent* content, ZOOMSDK::IMeetingReminderHandler* handle);

};

@chunsiong.zoom Hi,

Are we sure it is the issue?

Because as I said when running the process manually within my visual studio with the C# wrapper, I can insert the bot user into the meeting without any popups except the one requesting for meeting password if there is.

@eladw I can’t be sure unless we are able to capture the log when we encounter the issues.

The recommendations are based on commonly faced problems by other users

@chunsiong.zoom

Hi ,
Is there a way to activate the C++ logs ?

@eladw , if you are using Windows, here’s how to capture the logs

Windows

  • How to enable SDK log

When initializing the SDK, set InitParam.enableLogByDefault to be true, then the log feature will be enabled, the default log size will be 5MB

initParam.strWebDomain = strWebDomain.c_str();
initParam.strSupportUrl = L"https://zoom.us";
initParam.enableLogByDefault = true;
m_bSDKInit = CSDKHelper::Init(initParam);
  • Where to find SDK log
    • The SDK log files are encrypted files that end with the extension “.log”
    • Location: %appdata%/zoomsdk/logs/

@chunsiong.zoom
This is how I initialize it :

image

Is that correct? Because I don’t see any logs at all in this location

@eladw are you using the C# or C++ sample app?

@chunsiong.zoom
I’m using the C# wrapper

@eladw adding this line param.enable_log=true; should capture the log

I’ve just tested it on 5.16.6 on my machine, and the log shows up.