Meeting creating Root user's userId is working fine but when creating with member's user id giving error as "meeting not started"

Description
When I am starting meeting created with Root user’s userId using Zoom API it is working as expected, but when a meeting is created with Member’s userId then even if I have started the meeting, for participants it still shows that meeting has not started.

If Root UserId: For participants, it’s working fine.
If member’s UserId: For participants showing meeting not started

Which Web Meeting SDK version?
[1.7.8]

Meeting SDK Code Snippets

  const joinMeeting = async () => {
    import("@zoomus/websdk").then(async (zoom) => {
      const ZoomMtg = zoom.ZoomMtg;
      setNetReq(true);
      setZoomMtg(ZoomMtg);
      document.getElementById("zmmtg-root").style.display = "block";
      ZoomMtg.setZoomJSLib("https://source.zoom.us/2.0.1/lib", "/av");
      ZoomMtg.preLoadWasm();
      ZoomMtg.prepareJssdk();
      const signature = ZoomMtg.generateSignature({
        meetingNumber: data.meetingId, 
        apiKey: constants.ZOOM_APIKey,
        apiSecret: constants.ZOOM_APISecret,
        role: "0",
        success: function(res) {
          console.log(res.result);
        },
      });
      ZoomMtg.init({
        leaveUrl: "/video-classes",
        isSupportChat: true,
        disableInvite: true,
        meetingInfo: ["topic"],
        success: function() {
          console.log("hello");
          ZoomMtg.showInviteFunction({ show: false });
          ZoomMtg.join({
            meetingNumber: data.meetingId, 
            userName: store.get("user").name,
            signature: signature,
            apiKey: constants.ZOOM_APIKey,
            passWord: data.password,
            success() {
              ZoomMtg.showPureSharingContent({
                show: false,
              });
              $("#nav-tool").hide();
              console.log("hello");
              console.log("join meeting success", 145);
              $(".chat-participant-header").css({
                visibility: "hidden",
              });
              $(".chat-participant-header").text("Ask Questions");
            },
            error(res) {
              document.getElementById("zmmtg-root").style.display = "none";
            },
          });
        },
        error: function(er) {
          console.log("hello", er);
        },
      });
    });
  };

Meeting is created using ZOOM API in node js
My server-side meeting creation snippet:

const { default: Axios } = require("axios");
const jwt = require("jsonwebtoken");
const moment = require("moment");
const config = require("../../config/config");

const payload = {
  iss: config.ZOOM_APIKey,
  exp: new Date().getTime() + 86400,
};
const token = jwt.sign(payload, config.ZOOM_APISecret);
// create instance to connect to zoom API
const zoomInstance = Axios.create({
  baseURL: "https://api.zoom.us/v2",
  headers: {
    "User-Agent": "Zoom-api-Jwt-Request",
    "content-type": "application/json",
    Authorization: `Bearer ${token}`,
  },
  JSON,
});

const createMeeting = async (payload = {}) => {
  const {
    topic,
    instituteId,
    level = [],
    startDateTime,
    duration = 120,
  } = payload;
  const startTime = moment.utc(startDateTime).format();
  let meetingObj = {
    topic,
    type: 2,
    start_time: startTime,
    duration: duration || 120,
  };
  if (payload.password) {
    meetingObj.password = payload.password;
  }
  const newMeeting = (
    await zoomInstance.post(
      `/users/${
        payload.userId ? payload.userId : config.ZOOM_ROOT_USER
      }/meetings`,
      meetingObj
    )
  ).data;
}

Device :

  • Browser: [e.g. Chrome, Edge]

Hey @haribabu,

Thank you for reaching out to the Zoom Developer Forum. It looks like you’re using an older version of the Web SDK that is no longer supported.

Please try testing with the Sample Web App at the latest version and let us know if that resolves your issue.

Thanks,
Max

I’ve switched to the newer 2.0.1 version still getting the same screen as meeting not started

Hey @haribabu,

Thank you for following up. Please try following our guide on Improving Web SDK Performance and let me know if that fixes the issues you’re seeing.

Please note, we recommend testing with Chrome as that offers the best performance and latest browser APIs.

Thanks,
Max

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