Description
I have seen multiple questions people asked on this dev forum about error code 3008 message: Please init meeting first!. It only shows the loader and ZoomMtg.join
throws this error.
Error
The full error message or issue you are running into.
Which version?
I’m upgrading from 1.7.7 to 1.8.5
To Reproduce(If applicable)
here is my React Component:
import React, {Component} from 'react'
import {withRouter} from 'react-router-dom'
import axios from "../axios-middleware"
import Cookies from "js-cookie"
import {ZoomMtg} from "@zoomus/websdk"
import "@zoomus/websdk/dist/css/bootstrap.css"
import "@zoomus/websdk/dist/css/react-select.css"
ZoomMtg.setZoomJSLib("https://source.zoom.us/1.8.5/lib", "/av")
class Zoom extends Component {
constructor(props) {
super(props)
this.state = {
...
}
}
.......
initZoom(meetingSession, apiKey, signature, email) {
ZoomMtg.preLoadWasm()
ZoomMtg.prepareJssdk()
ZoomMtg.init({
leaveUrl: 'https://www.abc.com/' + this.state.userRedirectPath,
isSupportAV: true,
success: function (success) {
console.log("Init Success ", JSON.stringify(success));
ZoomMtg.join(
{
meetingNumber:,
userName: '',
signature: signature,
apiKey: apiKey,
passWord: '',
success: function (res) {
console.log('join meeting success')
},
error: function (res) {
console.log(res)
}
}
)
},
error: function (res) {
console.log(res)
}
})
}
render() {
if (this.state.legitUser) {
return (
<div id="zmmtg-root"/>
)
} else {
return (
<>
{this.state.stolenCookie &&
<div>
<p>Be supportive</p>
</div>
}
{this.state.noCookieAvailable &&
<div>
<p>Make sure you have enabled the browser cookies for accessing the Live Stream.</p>
</div>
}
<div>
<p>We are verifying your identity. If this takes more than 5 seconds, please try
again...</p>
</div>
</>
)
}
}
}
export default withRouter(Zoom)
Device (please complete the following information):
- Browser: Chrome