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 crash on non HTTPS sites.

paweldomase94c4238d1eb
diff --git a/app.js b/app.js
index 2e63fda0c0..4acd51a54b 100644
--- a/app.js
+++ b/app.js
@@ -144,16 +144,10 @@ function connect(jid, password) {
}
/**
- * HTTPS only:
- * We first ask for audio and video combined stream in order to get permissions and not to ask twice.
- * Then we dispose the stream and continue with separate audio, video streams(required for desktop sharing).
+ * We ask for audio and video combined stream in order to get permissions and
+ * not to ask twice.
*/
function obtainAudioAndVideoPermissions(callback) {
- // This makes sense only on https sites otherwise we'll be asked for permissions every time
- if (location.protocol !== 'https:') {
- callback();
- return;
- }
// Get AV
getUserMediaWithConstraints(
['audio', 'video'],