# Zoom web sdk shows blank screen after a loader "Joining meeting"

**URL:** <https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339>\
**Category:** Web\
**Created:** [December 14, 2020, 12:16pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339 "2020-12-14T12:16:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![krrish](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krrish](https://devforum.zoom.us/u/krrish)\
**Post date:** [December 14, 2020, 12:16pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/1 "2020-12-14T12:16:11Z")

</div>

**Description**  
Hi,  
I’ve used zoom web sdk with react.js.  
I tried joining in a meeting with zoom web sdk and then it is showing a loader that says “Joining meeting”, but nothing is happening after that except an empty black screen.

**Which version?**  
version 1.8.3

**Screenshots**  
Loader:  
[Screenshot (34)|690x387](https://devforum.zoom.us/uploads/short-url/6T3XlFVDYhdDT0vP8vhtRMUWODE.png)  
Black Screen:

 ![Screenshot (35)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/0/10443eda84c95e5590302228847134814b45696e.png)

**Device (please complete the following information):**

- Device: [Lenovo G50]
- OS: [Windows]
- Version: [10]
- Browser:[Microsoft edge]

**Additional context**  
My code:

````auto
import {ZoomMtg} from '@zoomus/websdk';

ZoomMtg.setZoomJSLib( "http://localhost:3000/node_modules/@zoomus/websdk/dist/lib", "/av" );

ZoomMtg.preLoadWasm();

ZoomMtg.prepareJssdk();

const API_KEY = "";

const API_SECRET = "";

let meetingConfig = window.location.hash.split("?")[1];

meetingConfig = JSON.parse(decodeURI(meetingConfig).split("=")[1])

const signature = ZoomMtg.generateSignature({

    meetingNumber: meetingConfig.meeting_number,

    apiKey: API_KEY,

    apiSecret: API_SECRET,

    role: meetingConfig.meeting_role,

    success: function (res) {

      console.log('signature')

        meetingConfig.apiKey = API_KEY;

        joinMeet(res.result)

    },

});

function joinMeet (signature) {

  ZoomMtg.init({

      leaveUrl: 'http://localhost:3000/',

      success: function () {

        console.log(meetingConfig)

        ZoomMtg.join({

          meetingNumber: meetingConfig.meeting_number,

          userName: meetingConfig.display_name,

          signature: signature,

          apiKey: meetingConfig.apiKey,

          userEmail: meetingConfig.meeting_email,

          passWord: meetingConfig.meeting_pwd,

          success: function (res) {

            console.log("join meeting success");

            console.log("get attendeelist");

            ZoomMtg.getAttendeeslist({});

            ZoomMtg.getCurrentUser({

              success: function (res) {

                console.log("success getCurrentUser", res.result.currentUser);

              },

            });

          },

          error: function (res) {

            console.log(res);

          },

        });

      },

      error: function (res) {

        console.log(res);

      },

    });

  

    ZoomMtg.inMeetingServiceListener('onUserJoin', function (data) {

      console.log('inMeetingServiceListener onUserJoin', data);

    });

  

    ZoomMtg.inMeetingServiceListener('onUserLeave', function (data) {

      console.log('inMeetingServiceListener onUserLeave', data);

    });

  

    ZoomMtg.inMeetingServiceListener('onUserIsInWaitingRoom', function (data) {

      console.log('inMeetingServiceListener onUserIsInWaitingRoom', data);

    });

  

    ZoomMtg.inMeetingServiceListener('onMeetingStatus', function (data) {

      console.log('inMeetingServiceListener onMeetingStatus', data);

    });

}```
````

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 15, 2020, 11:25pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/2 "2020-12-15T23:25:52Z")

</div>

Hey @krrish,

Happy to help! Do you see any errors in the browser console?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![krrish](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krrish](https://devforum.zoom.us/u/krrish)\
**Post date:** [December 16, 2020, 5:22am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/3 "2020-12-16T05:22:58Z")

</div>

Hey @tommy,

I get about 20 errors as you can see in the screen shot, most of them occur in “zoomus-websdk.umd.min.js”

 ![Screenshot (36)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/a/fa81aef273e39f965ad48264a1ed51d8a604216e.png)

and this is the info I get in the log

 ![Screenshot (38)](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/6/06919d88d247a1a661646a2a0093e54d0d3277d5.png)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 16, 2020, 11:39pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/4 "2020-12-16T23:39:00Z")

</div>

Hey @krrish,

Since you are using the Web SDK in React, can you checkout this React sample app I have made:

> **[zoom/websdk-sample-react](https://github.com/zoom/websdk-sample-react)**
>
> Use the Zoom Web SDK in a React App. Contribute to zoom/websdk-sample-react development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![krrish](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krrish](https://devforum.zoom.us/u/krrish)\
**Post date:** [December 17, 2020, 7:34am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/5 "2020-12-17T07:34:17Z")

</div>

Hey @tommy,

Thank you for the help, I got it working now.  
I’ve another question, I would like to let my users log into their zoom accounts through my website/app and then let them use zoom for creating or joining meetings.  
Is there a way I could do that?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 18, 2020, 6:59pm UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/6 "2020-12-18T18:59:02Z")

</div>

Hey @krrish,

Thank you for your question. Just to clarify, are you saying that you would like to log the users in through your website and create/join the meeting from the website too? Or, are you saying you would like to log in the user through your website and then continue to have them use the Zoom App creating and joining meetings?

> I would like to let my users log into their zoom accounts through my website/app

In order to accomplish this, you can use an OAuth app flow. In this instance, when you send a user to the [authorization endpoint](https://marketplace.zoom.us/docs/guides/auth/oauth#step-1-request-user-authorization), they will have the opportunity to log in or sign up before being redirected back to your website.

> then let them use zoom for creating or joining meetings.

In terms of creating meetings, this can be done via the [Create Meeting API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate). However, it’s important to note that the meeting cannot be started from the Web SDK unless the meeting is owned by the same owner of the JWT app. Instead, you’ll want to start meetings from the Zoom app itself. Once a meeting is started, you can [join it from the Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/meetings/join).

You can find more information on the forum:

> [@Start a meeting on behalf of a user - Web SDK with OAuth](https://devforum.zoom.us/t/start-a-meeting-on-behalf-of-a-user-web-sdk-with-oauth/27245/2):
>
> Hey @mayank.patel, We discourage asking customers to share their JWT Credentials with developers. I do see the headache here how you can’t use OAuth to start meetings for a user via the Web SDK since the Web SDK can only start meetings owned by the same account as the JWT App. I will share this feedback with our team and see if we can expand the Web SDK authentication to allow authorized users to start their own meetings. (CS-2206) In the meantime, I suggest having the host of the meeting s…

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![krrish](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krrish](https://devforum.zoom.us/u/krrish)\
**Post date:** [December 19, 2020, 7:33am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/7 "2020-12-19T07:33:01Z")

</div>

Hey @MaxM,

Thanks for the reply.

> Thank you for your question. Just to clarify, are you saying that you would like to log the users in through your website and create/join the meeting from the website too? Or, are you saying you would like to log in the user through your website and then continue to have them use the Zoom App creating and joining meetings?

I would like to do everything in my website itself.

> In order to accomplish this, you can use an OAuth app flow. In this instance, when you send a user to the [authorization endpoint](https://marketplace.zoom.us/docs/guides/auth/oauth#step-1-request-user-authorization), they will have the opportunity to log in or sign up before being redirected back to your website.

Is there any example code to start the meeting

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [December 22, 2020, 12:57am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/8 "2020-12-22T00:57:25Z")

</div>

Hey @krrish,

Thank you for providing additional information. I understand that you are looking to integrate Zoom with your website. If you would like to see an example of using the Web SDK with, please see our [Sample App](https://github.com/zoom/sample-app-web). We don’t have an example of authenticating user with OAuth in that example but I’ve included some information below that should be helpful.

To that end, I should note that we offer various integration capabilities, which include our API endpoints and our SDKs.

If you wish to embed Zoom on your site or app, you will likely want to use a combination of our APIs (for creating and scheduling live meetings) and our Web SDK (for embedding the Zoom Meeting/video experience on your site/app). Details below on each of these.

**API and SDK Overview**  
We offer both APIs and SDKs for you to consider when planning an integration/implementation in an application. You may find the below information helpful for your web developer.

Here are some APIs which you can consider using within your application:  
[Create Meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate): To create a meeting (including instant meetings)  
[List Meetings](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings): To Display the schedule Meetings  
[Retrieve Meeting](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meeting): To get a specific meeting

We also have a Web SDK that you can consider integrating into your website:

> **[Web - Client SDKs - Zoom Software Development Kit (Zoom SDK)](https://marketplace.zoom.us/docs/sdk/native-sdks/web)**
>
> Zoom Web SDK
> 
> The Web SDK enables the development of video applications powered by Zoom's core framework inside an HTML5 web client through a highly opt...

**Authentication Methods**  
We have two authentication types:

JSON Web Token (JWT):  
JWT is an account-wide app and is available to all the admins and owners of the account. You can have only 1 JWT marketplace app registered in your account. You can generate multiple JWT tokens using the JWT keys, and the tokens operate independently of each other until expired or the credentials have been changed.

A JWT token will contain all the permissions, and there is no way to restrict it. A JWT token is only valid for your account.

To know more, please visit: [https://marketplace.zoom.us/docs/guides/auth/jwt](https://marketplace.zoom.us/docs/guides/auth/jwt)

OAuth 2.0:  
You can use an OAuth App if you want to have limited permissions for your token. To set up access credentials and request scopes for your app, create an OAuth app on the Marketplace. Follow the Create an OAuth App guide for a full walkthrough.  
OAuth2 endpoints are located at [https://zoom.us/oauth/](https://zoom.us/oauth/).

Depending on the App type (Account Level or User Managed), the app needs to be authorized by either the account admin or the user. To know more, please visit: [https://marketplace.zoom.us/docs/guides/build#understanding-app-types](https://marketplace.zoom.us/docs/guides/build#understanding-app-types)

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 21, 2021, 10:57am UTC](https://devforum.zoom.us/t/zoom-web-sdk-shows-blank-screen-after-a-loader-joining-meeting/38339/9 "2021-01-21T10:57:39Z")

</div>

Closed on January 21, 2021, 10:57am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
