Description
I m trying to integrates zoom in my app, in order to practice I create the next repo
Browser Console Error
[Not the main problem]Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17.
Which Web Meeting SDK version?
“@zoomus/websdk”: “^2.18.3”,
Meeting SDK Code Snippets
useEffect(() => {
const initializeZoom = async () => {
try {
const ZoomEmbed = (await import(‘@zoomus/websdk/embedded’)).default;
const client = ZoomEmbed.createClient();
const meetingSDKElement = document.getElementById(‘meetingSDKElement’);
// Add any additional logic for the client if needed
if (!meetingSDKElement) {
throw new Error(‘meetingSDKElement not found’);
}
client.init({
language: ‘es-ES’,
zoomAppRoot: meetingSDKElement
})
const data = await fetch('/api/signature', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(payload),
})
const res = await data.json()
client.join({
meetingNumber: payload.meetingNumber,
sdkKey: res.sdkKey,
signature: res.signature,
password: payload.password,
userName: payload.userName,
tk:''
})
} catch (error) {
console.log('--Error inside useEffect--', error);
}
};
initializeZoom();
}, );
Additional context
I checked if the JWT includes the meetingNumber, and it has
The meetingNumber is right and the sdkkey too