WebSDK custom dialogs and automatic failover to zoom.us

Hello All,

I was wondering if it’s possible to code some form of failover for WebSDK. I’m referring to last week’s update that created quite a bit of havoc. If we take JS code for WebSDK and disable default dialogs, perhaps we could automatically forward person to zoom.us/j/---meeting_number--- in case Zoom init or join fails?

In theory if default dialogs can be turned off, then we could create custom dialogs inside error handlers with something like a multiple choice: “Failed to join online webinar: [try again] [join through zoom.us]”.

Has anybody got anything of sort working on their end? Or is it even possible?

ZoomMtg.init({
        leaveUrl: 'http://www.zoom.us',
        isSupportAV: true,
        success: function () {
            ZoomMtg.join(
                {
                    meetingNumber: meetConfig.meetingNumber,
                    userName: meetConfig.userName,
                    signature: signature,
                    apiKey: meetConfig.apiKey,
                    passWord: meetConfig.passWord,
                    success: function(res){
                        $('#nav-tool').hide();
                        console.log('join meeting success');
                    },
                    error: function(res) {
                        console.log(res);
                        /* HANDLE THAT REFERRAL TO ZOOM.US HERE */
                    }
                }
            );
        },
        error: function(res) {
            console.log(res);
           /* AND SAME HERE, REFERRAL TO ZOOM.US HERE */
        }
    });

Nevermind! I actually just found there is a flag on INIT that can disable default dialogs:
https://marketplace.zoom.us/docs/sdk/sdk-reference/web-reference

If you pass “isShowJoiningErrorDialog: false” to the .init function then those dialogs should not show and you can show your own inside error handlers. Should work in theory!

Hi @anton.skvortsov,

We’re glad that you were able to find the dialog issue and yes you could display your own dialog using the method you proposed. Please let us know if you have any other questions.

Thanks

1 Like