ZoomMtg.init success never reached - Blackscreen

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);

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

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