Description
I have initialized the SDK using ZoomVideoSdkProvider, when i try to join a meeting i get ZoomVideoSDKError_Invalid_Parameter
Errors
I have a listener to listen for error:
const eventErrorListener = zoom.addListener(
EventType.onError,
async (error: any) => {
switch (error.errorType) {
case Errors.SessionJoinFailed:
console.log('EventError', error);
break;
default:
}
},
);
it consoles the following object:
{
details: 0,
errorType: "ZoomVideoSDKError_Invalid_Parameter"
}
Which React Native Video SDK version?
1.1.1
Video SDK Code Snippets
JWT Payload:
{
"user_identity": "2bn3S0MxzpIw7tV",
"tpc": "Session Name",
"exp": 1643828236,
"iat": 1643745436,
"app_key": "RftHBby9f1qdvnaXGV6g5Kt3ZqKZ8mOmYUHn",
"version": 1
}
const zoom = useZoom();
Joining Session:
try {
const token = '‘eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkZW50aXR5IjoiMmJuM1MwTXh6cEl3N3RWIiwidHBjIjoiU2Vzc2lvbiBOYW1lIiwiZXhwIjoxNjQzODI4MjM2LCJpYXQiOjE2NDM3NDU0MzYsImFwcF9rZXkiOiJSZnRIQmJ5OWYxcWR2bmFYR1Y2ZzVLdDNacUtaOG1PbVlVSG4iLCJ2ZXJzaW9uIjoxfQ.tnyNVhioNs2U9P1b2B6PAGpow9OvR7NZ9BQ5egAfYlU’await zoom.joinSession({ sessionName: 'Session Name', sessionPassword: '123456', token: token, userName: 'Ahmed', audioOptions: { connect: true, mute: false, }, videoOptions: { localVideoOn: true, }, }); } catch (e) { console.log(e); }
Smartphone:
-
Device 1: [e.g. iPhone 8 plus],
-
OS: [e.g. iOS 15]
-
Device 2: [e.g. Realme 3],
-
OS: [e.g. Android 10]
Additional context
i am using the react native example call screen code