Meeting is not started error 3008 JS

Hello

I take a look at the sample web app, but it does not tell how to start a meeting. It only shows how to join a meeting with meeting number.

I have created my JWT app and get the api key and secret code.
I made a js code below and I get the following error.

I also tried to set ROLE to 1.

**Meeting is not started error 3008 **

<script>
(function () {

    console.log('checkSystemRequirements');
    console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

    ZoomMtg.setZoomJSLib('https://dmogdx0jrul3u.cloudfront.net/1.7.2/lib', '/av');

    ZoomMtg.preLoadWasm();
    ZoomMtg.prepareJssdk();

    var API_KEY = 'MY_APIKEY';
    var API_SECRET = 'MY_SECRET';

    const meetConfig = {
        apiKey: API_KEY,
        apiSecret: API_SECRET,
        meetingNumber: '123456789',
        leaveUrl: 'MY_URL',
        userName: 'Alper',
        userEmail: '',
        passWord: '',
        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: 'MY_URL',
        isSupportAV: true,
        success: function () {
            ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: meetConfig.userEmail,
                        passWord: meetConfig.passWord,
                        success: function (res) {
                            // $('#nav-tool').hide();
                            console.log('join meeting success');
                        },
                        error: function (res) {
                            console.log(res);
                        }
                    }
            );
        },
        error: function (res) {
            console.log(res);
        }
    });

})();

Any js code sample to start and join a meeting will be very helpful.
Thank you.

Hey.Maybe the meetingNumber is invalid. Have you created a meeting with the meeting number 123456789?

That is my problem to create a meeting with HTML JS.
I need to create meeting and join it.

1 Like

I think maybe the WebSDK only join meeting. Though the API provide the ‘role’ different code.
You can wait for an official answer. @tommy

Setting the Role 1 fixed the issue.
Thank you.

1 Like

Hi @selda,

We’re glad that you were able to resolve the issue, let us know if you have any other questions.

Thanks
Michael

I am with this problem too. I my case, role 0 work (if the meeting is already started), but role 1 show error message: “Not allow to start webinar from web.” Can you help me?

Hi @ti12,

Right now the WebSDK does not support registered users or starting/hosting webinars. We are looking to include this in a future release - Meeting bad audio and bad video

Thanks