Hi all, I am trying to implement a video calling functionality in my website. I want users to schedule and share zoom calls in my website.
I am using Zoom client view and trying to implement this code in my React.Js code.
Code -
import { ZoomMtg } from "@zoomus/websdk"
ZoomMtg.setZoomJSLib("https://source.zoom.us/2.18.2/lib", "/av")
ZoomMtg.preLoadWasm()
ZoomMtg.prepareWebSDK()
// loads language files, also passes any error messages to the ui
ZoomMtg.i18n.load("en-US")
ZoomMtg.i18n.reload("en-US")
function startMeeting(signature) {
document.getElementById("zmmtg-root").style.display = "block"
ZoomMtg.init({
leaveUrl: leaveUrl,
success: (success) => {
console.log(success)
ZoomMtg.join({
signature: signature,
sdkKey: sdkKey,
meetingNumber: meetingNumber,
passWord: passWord,
userName: userName,
userEmail: userEmail,
tk: registrantToken,
zak: zakToken,
success: (success) => {
console.log("success : ",success)
},
error: (error) => {
console.log("error : ",error)
},
})
},
error: (error) => {
console.log("error 2 : ",error)
},
})
}
I am able to see the “join meet” screen as follows -
but when I click on “Join” button, I get the following errors -
-
m.AK.connectSocket is not a function
-
Invalid DOM property
playsinline
-
‘React’ is not defined
-
invalid
ARIA
attributeariaLabel
-
A cross-origin error was thrown.
React version - 18.2.0
@zoomus/websdk version - 2.18.2
Can somebody please help me with this issue?
Thanks,