JsMediaSDK_Instance is not defined ReferenceError: JsMediaSDK_Instance is not defined

Before Creating a New Topic:

If you’re experiencing unexpected Video SDK behavior please search the forum with relevant keywords (e.x. error message) and follow the guidance outlined in those posts. Please also leverage the following support links:


Format Your New Topic as Follows:

Video SDK Type and Version
Newest Video SDK.

Description
When the second participant opens localhost/video, JsMediaSDK_Instance is not defined
ReferenceError: JsMediaSDK_Instance is not defined error occurs .

Error?
JsMediaSDK_Instance is not defined
ReferenceError: JsMediaSDK_Instance is not defined
at qs.getPTZCapability (http://localhost:3000/static/js/bundle.js:18844:30)
at H_ (http://localhost:3000/static/js/bundle.js:27012:18)
at F_ (http://localhost:3000/static/js/bundle.js:26996:21)
at http://localhost:3000/static/js/bundle.js:27058:19
at t.project (http://localhost:3000/static/js/bundle.js:27080:8)
at t._next (http://localhost:3000/static/js/bundle.js:15388:20)
at t.next (http://localhost:3000/static/js/bundle.js:13807:32)
at t._next (http://localhost:3000/static/js/bundle.js:14863:31)
at t.next (http://localhost:3000/static/js/bundle.js:13807:32)
at t._next (http://localhost:3000/static/js/bundle.js:15576:65)

Troubleshooting Routes
The troubleshooting attempt types you’ve already exhausted, including testing with the appropriate sample app (found on Zoom · GitHub).

How To Reproduce
Steps to reproduce the behavior including:
1. Authentication method or app type
2. Any errors
3. Browser/client type and version

@EH2077 ,

Could you share the specific

  1. Video SDK version
  2. browser and operating system
  3. URL of the.sample code which you are using

Thanks for replying, my video sdk version is 1.7.10, browser is Chrome, os is macOS ventura 13.4. I am using my own code now in a private repo currently, any suggestions for which part of the code could possibly cause the error?

@EH2077 Its hard to troubleshoot as this is your custom code, and we do not extensively debug code over the developer forum.

From some of the past forum post, your issue might be caused by a race condition. In other words, there is a possibility that the web application is referencing to our SDK object before it has completely loaded from the web.

Here’s one of the thread which you might find useful

do tag me in your response to get my attention to reply