Invite Zoom Room and using getZoomRoomlist

Description
I am trying to setup a system to invite a Zoom Room into a new meeting. I am trying to get a list of Zoom Rooms available using the function getZoomRoomlist. I get the following error in the console.

ZoomMtg.getZoomRoomlist is not a function

I am Using 1.7.4 web SDK version.

I have the following code

(function(){
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.4/lib', '/av');
    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk();
    
    var API_KEY = '*********************';
    var API_SECRET = '**************************';

    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: parseInt(document.getElementById('meeting_number').value),
            userName: document.getElementById('display_name').value,
            passWord: "",
            leaveUrl: "https://auth.brane.systems",
            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: 'https://auth.brane.systems',
            isSupportAV: true,
            success: function () {
                ZoomMtg.getZoomRoomlist({
                    success: function (res) {
                        console.log(res);
                    }
                });
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();

Am I missing anything here? I am following the API documentation provided. Please guide me.

EDIT: I am using trial version of Zoom Room. Is that something to do with this issue?

Hi,

You first need to run ZoomMtg.join() and then on the success callback you can access getZoomRoomlist().

Hope this helps

2 Likes

I am host in this use case. I tried to start the meeting with a meeting ID of one of users in our account. I get back an error message ‘The meeting number is not found’ when I try to join the meeting.

EDIT: I did start a meeting with a different from iOS app. Successfully joined that meeting from web SDK. But still gives the same error as specified in the original question.

Try calling that method from the console some time after you connected succesfuly. Not sure why it would not be a function.

1 Like

I tried that. I did try to call the method in console after successfully connecting to the meeting. It still says it is not a function. I edited my original question but i will put that information here too. I have trial version of Zoom Room. Do you think that will interfere with this functionality?

Thats wierd, probably has something to do with the latest changes in 1.7.4.

We do testing in some trial accounts too and it works without issues.

My best guess is that v1.7.4 is still buggy as we are facing issues to but with join.

1 Like

Hey @greg.stanford,

Can you update the code in your post with your most recent code change, calling the getZoomRoomlist function after the join function as @pmogollon suggested so I can debug?

Thanks,
Tommy

(function(){
    ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.4/lib', '/av');
    ZoomMtg.preLoadWasm();

    ZoomMtg.prepareJssdk();
    
    var API_KEY = '****************';
    var API_SECRET = '***********************';

    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: parseInt(document.getElementById('meeting_number').value),
            userName: document.getElementById('display_name').value,
            passWord: "",
            leaveUrl: "https://zoom.us",
            role: 1
        };


        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: 'https://zoom.us',
            isSupportAV: true,
            success: function () {
                ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: '',
                        passWord: meetConfig.passWord,
                        success: function(res){
                            ZoomMtg.getZoomRoomlist({
                                 success: function (res) {
                                   console.log(res);
                                 }
                             });
                      
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();

Hey @greg.stanford,

I was able to reproduce the issue.

We are looking into it and will get back to you. (ZOOM-150263)

Thanks,
Tommy

Hey @greg.stanford,

After speaking with our Web SDK engineers, the getZoomRoomList is deprecated and no longer supported. We have updated the docs.

Thanks,
Tommy