# ZoomMtg.init success never reached - Blackscreen

**URL:** <https://devforum.zoom.us/t/zoommtg-init-success-never-reached-blackscreen/32263>\
**Category:** Web\
**Created:** [October 6, 2020, 1:50am UTC](https://devforum.zoom.us/t/zoommtg-init-success-never-reached-blackscreen/32263 "2020-10-06T01:50:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.rahmel](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@s.rahmel](https://devforum.zoom.us/u/s.rahmel)\
**Post date:** [October 6, 2020, 1:50am UTC](https://devforum.zoom.us/t/zoommtg-init-success-never-reached-blackscreen/32263/1 "2020-10-06T01:50:21Z")

</div>

**Description**  
Hi, I am trying to add a zoom meeting into a website and I am always getting a black screen. It seems the ZoomMtg.init() success is never reached, but error is not reached either.

**Error**  
No error message, only black screen and not working

**Which version?**  
I am using Web SDK 1.8.1

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
I am using the following code

```
    console.log('check');
    console.log(ZoomMtg.checkSystemRequirements());
    console.log(ZoomMtg.getWebSDKVersion());
    console.log('load');
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.8.1/lib', '/av');
    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk;
    console.log('loaded');

    console.log('config');
    const meetConfig = {
        apiKey: '<?php echo $api_key ?>',
        signature: '<?php echo $signature ?>',
        meetingNumber: '<?php echo $meeting_number ?>',
        leaveUrl: 'https://zoom.us',
        userName: 'My User Name',
        userEmail: myaddress@mail.de',
        passWord: '<?php echo $pass ?>', // if required
        role: <?php echo $role ?> // 1 for host; 0 for attendee
    };

var checkExist = setInterval(function() {
console.log('startinit');
if ($("zmmtg-root")) {
    clearInterval(checkExist);
    ZoomMtg.init({
        leaveUrl: meetConfig.leaveUrl,
        isSupportAV: true,
        success: (success) => {
            console.log(success);

            ZoomMtg.join({
                meetingNumber: meetConfig.meetingNumber,
                userName: meetConfig.userName,
                signature: meetConfig.signature,
                apiKey: meetConfig.apiKey,
                passWord: meetConfig.passWord,

                success: (res1) => {
                    console.log(res1);
                },

                error: (res2) => {
                    console.log(res2)
                }
            })
        },
        error: (error) => {
            console.log(error)
        }
    });
    console.log('afterinit');
} else {
    console.log('waiting for zmmtg-root')
}

```

}, 1000);

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [October 6, 2020, 6:54pm UTC](https://devforum.zoom.us/t/zoommtg-init-success-never-reached-blackscreen/32263/2 "2020-10-06T18:54:32Z")

</div>

Hey @s.rahmel,

Can you confirm that you are completely loading the WASM files asynchronously before starting / joining the meeting? If they are not loaded completely first via the `ZoomMtg.preLoadWasm();` and `ZoomMtg.prepareJssdk()` ; functions, you will see a black screen.

Thanks,  
Will

---

<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:** [November 6, 2020, 4:54am UTC](https://devforum.zoom.us/t/zoommtg-init-success-never-reached-blackscreen/32263/3 "2020-11-06T04:54:33Z")

</div>

Closed on November 6, 2020, 4:54am UTC

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