onError, error: ZoomVideoSDKError_Session_Invalid_Param


I am using flutter_zoom_videosdk ^2.5.10 in my flutter app to integrate zoom for video calling. But I'm getting the error as given below:

> onError, error: ZoomVideoSDKError_Session_Invalid_Param
D/ZoomVideoSdkDebug(23476): onSessionLeave, reason: ZoomVideoSDKSessionLeaveReason_BySelf

Steps I followed

  1. I referred to the official documentation for Zoom video sdk for Flutter to build my app

  2. I have created an app on marketplace. From there I have used client id and client secret to generate jwt token required for joining session. For testing purpose I have generated jwt token from official auth link of zoom.

  3. But while testing I am getting onError, error:

> ZoomVideoSDKError_Session_Invalid_Param

I have given complete logs details as below:

D/ZoomVideoSdkDebug(23476): SDK initialized successfully I/flutter (23476): JWT: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoieGV3MVBsU2FjSUdwN0dONVVVUSIsInRwYyI6InJvb20tMTIzIiwicm9sZV90eXBlIjowLCJ2ZXJzaW9uIjoxLCJpYXQiOjE3OTA5MjU3NzYsImV4cCI6MTc5MDkzMjk3Nn0.ROjt8ojmvcz7LjSTPA3FEcHgfaRyitBeFwi6qX-8Yqs D/ZoomVideoSdkDebug(23476): Session details: - session=“room-123” user=“Ram k” role=0 D/ZoomVideoSdkDebug(23476): Join Session successfully D/ZoomVideoSdkDebug(23476): onError, error: ZoomVideoSDKError_Session_Invalid_Param D/ZoomVideoSdkDebug(23476): onSessionLeave, reason:ZoomVideoSDKSessionLeaveReason_BySelf
-2
Oct 5 at 2:54 PM
User AvatarGanesh
#android#ios#flutter#dart#zoom-sdk

Accepted Answer

You signed the JWT with the Client ID and secret from a marketplace app. Those are Zoom Meeting credentials. The Video SDK is a separate product with its own credentials.

Get your Video SDK credentials from here (https://developers.zoom.us/docs/video-sdk/get-credentials/), put the key in app_key, and sign the token with the secret.

Check this forum for more info: <https://devforum.zoom.us/t/getting-error-2013-while-creating-a-session-from-android-sdk/97458>

User AvatarEmmanuel Obiechina Ikenna
Oct 5 at 4:04 PM
1