Skip to content

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

preparations for audio-only firefox

Philipp Hancke686bf4904cae
diff --git a/app.js b/app.js
index 07b161feaf..dcb760b7d9 100644
--- a/app.js
+++ b/app.js
@@ -33,7 +33,11 @@ function init() {
connection.connect(jid, document.getElementById('password').value, function (status) {
if (status == Strophe.Status.CONNECTED) {
console.log('connected');
- getUserMediaWithConstraints(['audio', 'video'], '360');
+ if (RTC.browser == 'firefox') {
+ getUserMediaWithConstraints(['audio']);
+ } else {
+ getUserMediaWithConstraints(['audio', 'video'], '360');
+ }
document.getElementById('connect').disabled = true;
} else {
console.log('status', status);