Commit 82ca9a49 authored by Suryaprasadh M's avatar Suryaprasadh M 🏸
Browse files

minor fix for jitsi

parent 3de600df
Loading
Loading
Loading
Loading
+0 −17
Original line number Diff line number Diff line
@@ -98,9 +98,7 @@ function onConnectionSuccess(props) {

  try {
    room = connection.initJitsiConference(roomName, {});
    window.room = room;
    room.on(JitsiMeetJS.events.conference.CONFERENCE_JOINED, () => {
      console.log("jitsiConnectionEvents====> JOINED");
      onConferenceJoined(setMeetingStatus);
      let participants = transformRemoteParticipants(room.getParticipants());
      participants.push(transformLocalParticipant(room, name));
@@ -134,7 +132,6 @@ function onConnectionSuccess(props) {

function jitsiConnectionEvents(props) {
  const { setMeetingStatus } = props;
  console.log("jitsiConnectionEvents====>");
  connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED,
    () => {
@@ -145,7 +142,6 @@ function jitsiConnectionEvents(props) {
  connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_FAILED,
    (res) => {
      console.log("res CONNECTION_FAILED", res);
      setMeetingStatus((prev) => ({
        ...prev,
        error: true,
@@ -155,22 +151,9 @@ function jitsiConnectionEvents(props) {
    }
  );

  connection.addEventListener(
    JitsiMeetJS.events.connection.otherError,
    (res) => {
      console.log("connection.otherError===>", res);
      setMeetingStatus((prev) => ({
        ...prev,
        error: true,
        message: res || "Connection Failed",
        connectionStatusCode: 0,
      }));
    }
  );
  connection.addEventListener(
    JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED,
    (res) => {
      console.log("res CONNECTION_DISCONNECTED", res);
      setMeetingStatus((prev) => ({
        ...prev,
        error: true,
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ function MeetingInput({ setJoin, setMeetingDetails }) {
      />

      <div style={{ marginTop: "20px" }}>
        {["teams", "zoom", "webex"].map((provider, i) => (
        {["teams", "zoom", "webex", "jitsi"].map((provider, i) => (
          <button
            key={i}
            style={{