Hello.
I would like to join a Zoom Meeting that I have created using the C++ Zoom SDK on Windows and play camera video and audio on the application screen.
I have registered Server-To-Server-Oauth as an application and by making that request, it is now possible to create a Meeting.
Now I would like to participate in this meeting from a C++ Windows application.
I am trying to join the meeting from “IMeetingService” with Join() or Start() function, but it does not work.
I don’t know where I can get join_token and customer_key for meetingService->Join.
In meetingService->Start, I pasted the “zak=” part from the URL when I created the meeting with the API, but I get a ZOOM_SDK_NAMESPACE::SDKERR_UNAUTHENTICATION error.
Thank you very much. Appreciate it.
To get zak_token using the API “/users/me/token?type=zak”.
To get join_token using “/meetings/{MeetingNumber}/jointoken/local_recording”.
I don’t know the equivalent location for customer_key.
Currently, join_token and customer_key are commented out.
IAuthService SDKAuth() succeeded by creating the appropriate jwt.
After the SDKAuth(), the IAuthServiceEvent callback “onAuthenticationReturn()” confirms that the SDK authentication has passed.
After this, I tried to start and join the Meeting, but I still get the SDKERR_UNAUTHENTICATION error.
The meeting number and password are set by checking for meetings that exist.
Is there any other possible cause?
Or is there a mistake in the procedure?
The OnAuthenticationReturn can return either sucess or failure. You might need to check this value.
If the return value is failure, I would recommend looking the JWT token which was used to authenticate the SDK.
If the OnAuthenticationReturn is success, you should be able to join / start meeting with no issues.
The token which you are using are correct.
You might not need to enter this. This specific token is supposed to be entered in app_privilege_token
Thanks for the advice.
I checked the return value of OnAuthenticationReturn and it was AUTHRET_JWTTOKENWRONG. it seems that the JWT token was invalid and the authentication did not pass.
When the JWT token was re-created and executed as shown here, it became AUTHRET_SUCCESS and the authentication succeeded.
After the authentication succeeded, I tried to join a Meeting and it succeeded and I am now waiting to join a Meeting! Thank you very much.
However, when I tried Meeting Start, it failed with SDKERR_INVALID_PARAMETER.
I tried it and the result of Meeting Start is the same: SDKERR_INVALID_PARAMETER.
I did not create any user, so I put “me” in “:userId”.
To start a meeting, create a user, get a zak token from the userId, and use that zak token. Do I need to use that zak token?
I tried the user creation API “https://api.zoom.us/v2/users/create” as a test, but it returned a RequestError405 indicating that I am not authorized to do so.