Try integrate web sdk

i dont know why failed when join meeting,
i already set the key and secret key the app work but failed join the meeting

pls help :slight_smile:

I am also having same issue joining as host and non-host from Mac’s Chrome through Web SDK. Works fine with Windows and other Macs. I am using version 1.7.2

Details -

MacBook Pro (Retina, 13-inch, Early 2015)
10.14.6
Google Chrome is up to date
Version 80.0.3987.132 (Official Build) (64-bit)

Hey @chetan, @rendyerasoft,

Please share your meeting ID, and code snippet for joining the Web SDK to developersupport@zoom.us.

Also, make sure you are using JWT App Credentials.

Thanks,
Tommy

The following code works with all computers I have tested so far except
MacBook Pro (Retina, 13-inch, Early 2015)
10.14.6
Google Chrome is up to date
Version 80.0.3987.132 (Official Build) (64-bit)

(function(){

    ZoomMtg.preLoadWasm();

    ZoomMtg.prepareJssdk();
    const API_KEY = 'HIDDEN';
    const API_SECRET = 'HIDDEN';
    $('#zmmtg-root').hide();


    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();
        $('#welcome_message').hide();
        $('#zmmtg-root').show();

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: "",
            userName: "Participant",
            passWord: "",
            leaveUrl: "mockurl",
            role: 0
        };


        var signature = ZoomMtg.generateSignature({
            meetingNumber: meetConfig.meetingNumber,
            apiKey: meetConfig.apiKey,
            apiSecret: meetConfig.apiSecret,
            role: meetConfig.role,
            success: function(res){
                console.log(res.result);
            }
        });

        ZoomMtg.init({
            leaveUrl: 'mockurl',
            isSupportAV: true,
            audioPanelAlwaysOpen: false,
            screenShare: false,
            showMeetingHeader: true,
            disableInvite: true,
            success: function () {

                ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: 'test@test.com',
                        passWord: meetConfig.passWord,
                        success: function(res){
                            $('#welcome_message').hide();
                            $('#wc-footer').hide();
                            $('#zmmtg-root').show();
                            setTimeout(function() {
                                // ZoomMtg.record({
                                //     record: true
                                // });
                            }, 5000);
                            console.log('join meeting success');
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();

Hey @chetan,

It should work on MacBook Pro (Retina, 13-inch, Early 2015).

Are you seeing any errors in the browser console? What specifically is the issue?

Thanks,
Tommy

Hi Tommy,

This is console log from the Mac. Also, adding network activity.

Thank you,
Chetan

Hey @chetan,

I believe this is an issue with your signature, or the Macs time settings. Can you please send me your signature to developersupport@zoom.us so I can debug?

Thanks,
Tommy

Hi Tommy,

The Macs time settings is right. Following is the signature -

Thank you,
Chetan

Hi @chetan/@rendyerasoft,

Just tested the code you sent, it worked for me when I input my own meeting ID.
I tried to input an incorrect meeting ID or a non existing one and got the same error.
Can you try a different meeting ID that you’ve had used before within your account and see if that works?

Thanks
Michael

1 Like

Hi Michael, the same meeting ID worked with several other machines. Also, I tried with different meeting IDs, and still, it is giving the same error. If you look at network activity, it does not make any HTTP call before giving that error.

Hi @chetan,

Looks like there might be a network issue that is causing some files to not load on that particular machine. I noticed that within your console that you have a couple of Violation messages as well.
We’ll continue to test to see if we can reproduce this error and follow up with you shortly.