Im facing an issue with zoom video connection.It was connected previously but now it is not working.The video and audio is not showing init

I just integrated the Zoom SDK into my React and React native applications it worked previously but now I just initiated a call and it is not working. I don’t understand what is happening, I’m sharing the id for your reference.

sV1lJrMZSv+cc6yW5vneTw==

Does anyone in Zoom know the solution to this issue?

Hey @dev.jestinxavier

Thanks for your feedback.

Can you describe the issue in more detail? For example, what platform is it on, what type of Video SDK is being used, and what is the version?

Thanks
Vic

@zoom/react-native-videosdk”: “^1.6.2”,
“react-native”: “0.69.12”,

@vic.yang do you have any idea to solve this issue.

Hey @dev.jestinxavier

I apologize for primarily focusing on the Video SDK web platform, but I will tag my colleague for future advice.

@chunsiong.zoom @elaine.ku Could you assist on this issue?

Thanks
Vic

export function VideoCallScreen() {
const [signatureData, setSignatureData] = useState(null);
const [myselfUserId, setMyselfUserId] = useState(null);
const [remoteUsers, setRemoteUsers] = useState();
const [isFullScreen, setIsFullScreen] = useState(false);
const [route, setRoute] = useRecoilState(ROLETYPE);
const [zoomCredentials, setZoomCredentials] = useRecoilState(ZOOMCREDENTIALS);
const isFirstRender = useRef(true);
const uid = useRecoilValue(UIDSTORING);
const [zoomSecretKeyCredentials, setZoomSecretKeyCredentials] =
useRecoilState(videoCredential);
const navigation = useNavigation();
const [name, setName] = useState(“”);
const zoom = useZoom();
const { socket } = useSocket();

const toggleFullScreen = () => {
// setIsFullScreen(!isFullScreen);
};
useEffect(() => {
socket?.on(“callEnded”, (data) => {
console.log(“call ended :blush:”);
leaveSession();
navigation.navigate(“Checking”);
});
return () => {
socket?.off(“participantLeft”);
};
}, [socket]);

const sendLogToPhone = (data) => {
const uniqId = uid?.data?.robot?.uuid;

const acknowledgementData = { id: uniqId, mobileLog: data };
socket?.emit("sentToPhone", acknowledgementData);

};

useEffect(() => {
const fetchSignature = async (zoomCredentialsData) => {
console.log(
zoomCredentialsData,
zoomCredentialsData.payload.data.zoomUserData,
:calling:”,
zoomCredentialsData.payload.data.zoomCredentials,
:computer::computer:zoomCredentialsData”
);
try {
sendLogToPhone({
majorCondition: isFirstRender.current,
zoomSecretKeyCredentials,
highRisk: “before jestinxavier.click/generateSignature”,
});
if (isFirstRender.current) {
// sendLogToPhone({sdkKey:zoomSecretKeyCredentials.zoom_account_id,sdkSecret:zoomSecretKeyCredentials.zoom_secret_key,zoomCredentials,},“:desktop_computer::desktop_computer::desktop_computer:”);

      const response = await axios.post(
        // 'https://tebo.devlacus.com/generateSignature',
        // "https://jestinxavier.click/generateSignature",
        "http://192.168.1.42:5000/generateSignature",
        {
          sdkKey:
            zoomCredentialsData.payload.data.zoomCredentials
              .zoom_account_id,
          sdkSecret:
            zoomCredentialsData.payload.data.zoomCredentials
              .zoom_secret_key,
          sessionName:
            zoomCredentialsData.payload.data.zoomUserData.sessionName,
          role: route.roleType,
          sessionKey:
            zoomCredentialsData.payload.data.zoomUserData.sessionKey,
          userIdentity: route.displayName,
        },
        { timeout: 9000 }
      );

      socket?.emit("sentToPhone", response);

      const { signature } = response.data;
      console.log({ signature });
      sendLogToPhone({
        majorCondition: isFirstRender.current,
        signature: signature,
        highRisk: "after jestinxavier.click/generateSignature",
      });

      // console.log("☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️");
      setSignatureData(signature);
    }
    // setSignatureData(signature);
  } catch (error) {
    sendLogToPhone({
      fetchSignature: error,
      type: "ERROR in fetchSignature",
    });

    if (error.response) {
      socket?.emit("sentToPhone", { 111: error.response });
    } else if (error.request) {
      socket?.emit("sentToPhone", { 117: error.request });

      // console.error("Error request:", error.request);
    } else {
      // Something happened in setting up the request that triggered an Error
      socket?.emit("sentToPhone", { 128: error.message });

      console.error("Error message:", error.message);
    }
  }
};

console.log({ zoomSecretKeyCredentials, zoomCredentials });

if (zoomCredentials) {
  console.log(zoomCredentials.payload.data.zoomUserData.name, "1");
  setName(zoomCredentials.payload.data.zoomUserData.name);
  sendLogToPhone({
    zoomCredentials,
    zoomCredentialsInside: "inside the zoom credintial ",
  });
  fetchSignature(zoomCredentials);
}

sendLogToPhone({
  zoomCredentials,
  zoomCredentialsOutSide: "outside the zoom credintial ",
});

// socket?.emit("callEnded", (data) => {
//   console.log("call ended 😊");
//   leaveSession();
// });

}, [zoomCredentials, socket, zoomSecretKeyCredentials]);

useEffect(() => {
async function joinSession() {
console.log(signatureData, “signatureData”);
if (signatureData) {
try {
console.log(
zoomCredentials.payload.data.zoomUserData.sessionName,
:jack_o_lantern: 2”
);

      let dataTop = await zoom.joinSession({
        sessionName: zoomCredentials.payload.data.zoomUserData.sessionName,
        sessionIdleTimeoutMins: 30,
        sessionPassword:
          zoomCredentials.payload.data.zoomUserData.userIdentity,
        token: signatureData,
        userName: route.displayName,
        audioOptions: { connect: true, mute: false },
        videoOptions: { localVideoOn: true },
      });
      isFirstRender.current = false;
      console.log({ dataTop });

      sendLogToPhone({
        zoomJoinSession: dataTop,
        message: "zoomJoining session with signature  -3",
      });
      const mySelf = await zoom.session.getMySelf();
      // setUsers([mySelf]);
      const cameraList = await zoom.videoHelper.getCameraList();

      sendLogToPhone({
        cameraList: cameraList,
        message: "cameraList   -4",
      });
    } catch (error) {
      console.error("Error joining session:", error);

      sendLogToPhone({ error, message: "join section try catch error" });
    }
  }
}

if (signatureData && isFirstRender.current) {
  joinSession();
  // Set isFirstRender to false after the initial render
}

const sessionJoinListener = zoom.addListener("onSessionJoin", async () => {
  sendLogToPhone({ message: "onSessionJoin  event is triggered 5" });
await  zoom.audioHelper.startAudio();

  // Retrieve mySelf within the listener
  const mySelf = await zoom.session.getMySelf();

await zoom.audioHelper.unmuteAudio(mySelf.userId);
setMyselfUserId(mySelf.userId);
const remoteUsers = await zoom.session.getRemoteUsers();
console.log({ remoteUsers });
sendLogToPhone({ remoteUsers, getRemoteUsers: “getRemoteUsers” });
// setUsers((prevUsers) => […prevUsers, …remoteUsers]);
setRemoteUsers(remoteUsers);
});

const sessionLeaveListener = zoom.addListener("onSessionLeave", () => {
  // setUsers([]);
  setRemoteUsers([]);
  leaveSession();
});

return () => {
  sessionJoinListener.remove();
  sessionLeaveListener.remove();
};

}, [zoom, signatureData]);

const leaveSession = () => {
zoom.leaveSession(false);
navigation.navigate(“Checking”);
};
return (


<ScrollView contentContainerStyle={{ flex: 1, alignItems: “center” }}>
{remoteUsers.length ? (

<RenderUsers
sendLogToPhone={sendLogToPhone}
users={remoteUsers}
// remoteUser={remoteUsers}
ApplicationLog={ApplicationLog}
// name={name}
isFullScreen={isFullScreen}
toggleFullScreen={toggleFullScreen}
/>

) : (

)}



);
}

export default VideoCallScreen;

From the above code, I obtained the cameraList with -4 logs, but the onSessionJoin event is not showing “onSessionJoin event is triggered 5” , not showing during the initiation of a call from the web to the app. It worked fine for the last three months, but now it’s not working. Is there any payment issue or anything like that? I don’t understand how to solve the issue. @chunsiong.zoom and @elaine.ku i need your support.

this is the session id
doPXbfXaS+6CoTKZOsWMQA==
for your reference
the app is working till 3 months befor. but now it is not working.is there any one in the zoom support knows the solution to fix this issue.

Hi @dev.jestinxavier,

Would you please provide the SDK log file to me using the direct message? You can add the log files to a Google Drive folder and provide the link to me.
Thank you.

Elaine

hi @elaine.ku what should i do for getting the log file and how i sent log through direct message.

@elaine.ku what changes do I need to make in my React native code to get the log? I’m just targeting only for Android.

@dev.jestinxavier if you’re using Android platform, the log file will locate at /sdcard/Android/data//logs. IOS will locate in AppData. Please add the log files to a Google drive folder and send the share link using direct message to me.
Thank you.

Elaine

here is the log files

https://drive.google.com/drive/folders/19t9UogDDUPCqQzH9MAZ3IPoKb65XZuSv

hi @elaine.ku did you check the log

hi any update on this @elaine.ku

any update @elaine.ku and @vic.yang

@dev.jestinxavier Please update the VSDK version to at least 1.7.5. The minimum version can refer to https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0061130#Dev.
You can use getSdkVersion method to check the current SDK version.
Thank you

Elaine

yes it is Zoom SDK Version: 1.6.2 (11583) so I need to update the vsdk right @elaine.ku. so what should I do for the updation.

Please change the version number in package.json to be at lease 1.7.5. Thank you

Elaine