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 issue with available devices icons

hristoterezov0e0f7d7ccb22
diff --git a/index.html b/index.html
index f4565042f8..b636eaf8f3 100644
--- a/index.html
+++ b/index.html
@@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script>
- <script src="libs/app.bundle.js?v=48"></script>
+ <script src="libs/app.bundle.js?v=49"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=6"/>
<link rel="stylesheet" href="css/toastr.css?v=1">
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 53f6bfb21f..10fa56029b 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -927,8 +927,12 @@ var RTC = {
}
},
setDeviceAvailability: function (devices) {
- this.devices.audio = (devices && devices.audio === true);
- this.devices.video = (devices && devices.video === true);
+ if(!devices)
+ return;
+ if(devices.audio === true || devices.audio === false)
+ this.devices.audio = devices.audio;
+ if(devices.video === true || devices.video === false)
+ this.devices.video = devices.video;
eventEmitter.emit(RTCEvents.AVAILABLE_DEVICES_CHANGED, this.devices);
}
};
diff --git a/modules/RTC/RTC.js b/modules/RTC/RTC.js
index 9fb5fddb50..7c6b141027 100644
--- a/modules/RTC/RTC.js
+++ b/modules/RTC/RTC.js
@@ -232,8 +232,12 @@ var RTC = {
}
},
setDeviceAvailability: function (devices) {
- this.devices.audio = (devices && devices.audio === true);
- this.devices.video = (devices && devices.video === true);
+ if(!devices)
+ return;
+ if(devices.audio === true || devices.audio === false)
+ this.devices.audio = devices.audio;
+ if(devices.video === true || devices.video === false)
+ this.devices.video = devices.video;
eventEmitter.emit(RTCEvents.AVAILABLE_DEVICES_CHANGED, this.devices);
}
};