Connection Timeout when integration in a codeigniter project

Hi
I am trying to integerate zoom in a codeigniter website , i made a JWT app and get an API secret and API key and added them as follow:

        <nav id="nav-tool" class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <h4><i class="fab fa-chromecast"></i> Live Class Title : <?=$liveClass['title']?></h4>
            </div>
            <div class="navbar-form navbar-right">
                <h5><i class="far fa-user-circle" style=""></i> Host By : <?=$liveClass['created_by']?> </h5>
            </div>
        </div>
    </nav>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/react.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/react-dom.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/redux.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/redux-thunk.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/jquery.min.js"></script>
    <script src="https://source.zoom.us/1.7.6/lib/vendor/lodash.min.js"></script>
    <script src="https://source.zoom.us/zoom-meeting-1.7.6.min.js"></script>
    <script type="text/javascript">
        ZoomMtg.preLoadWasm();
        ZoomMtg.prepareJssdk();
        var meetConfig = {
            apiKey: "******",
            apiSecret: "*****",
            meetingNumber: "<?=$meetingID?>",
            userName: "malek",
            passWord: "<?=$liveClass['meeting_password']?>",
            leaveUrl: "<?php echo base_url('live_class');?>",
            role: parseInt(1, 10)
        };
        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: meetConfig.leaveUrl,
            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();
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });
    </script>

but i always get this error :
Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.

can any one help ?

Hey @m.elsisi,

Please try using Web SDK version 1.7.10 instead of 1.7.6. :slight_smile:

Let me know if that fixes the issue.

Thanks,
Tommy

Thanks for fast reply
now it gives me this error
Joining meeting timeout.
The meeting number is not found.

here is my signature

Hey @m.elsisi,

You are passing in 212 as your meeting number. You need to use a real meeting number. You can debug this by base64 decoding your signature.

Thanks,
Tommy

This code is supposed to host them meeting ( Create meeting id ) , or should i create the meeting id before initializing , If so could you send me an example for integrating zoom using codeigniter ?

Hey @m.elsisi,

You must create the meeting before hand. You can create meetings programmatically via the Create Meeting API.

Unfortunately we do not have code examples in codeigniter

Thanks,
Tommy

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