Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes JS error when enable / disable video. Changes the enable / disable video function to send presence with videomuted element.

hristoterezovf6a846eecc0e
diff --git a/app.js b/app.js
index 18576c09bb..543f5c35ce 100644
--- a/app.js
+++ b/app.js
@@ -950,20 +950,11 @@ function toggleVideo() {
$('#video').removeClass("icon-camera icon-camera-disabled");
$('#video').addClass("icon-camera");
}
+ connection.emuc.addVideoInfoToPresence(isMuted);
+ connection.emuc.sendPresence();
}
);
}
-
- sess = focus || activecall;
- if (!sess) {
- return;
- }
-
- sess.pendingop = ismuted ? 'unmute' : 'mute';
-// connection.emuc.addVideoInfoToPresence(!ismuted);
-// connection.emuc.sendPresence();
-
- sess.modifySources();
}
/**