This is an automated email from the ASF dual-hosted git repository. sebawagner pushed a commit to branch feature/openmeetings-2245-mediadevice-chrome-https-only in repository https://gitbox.apache.org/repos/asf/openmeetings.git
commit d461805d2bc7aa5f5cb4cca667b5793a889da7ca Author: Sebastian Wagner <sebastian.wagn...@airnz.co.nz> AuthorDate: Fri Apr 10 09:59:20 2020 +1200 OPENMEETINGS-2245 Add some warning if mediaDevices is undefined --- .../src/main/java/org/apache/openmeetings/web/room/raw-settings.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js index dd9e768..7ae91a7 100644 --- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js +++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js @@ -357,6 +357,11 @@ var VideoSettings = (function() { } function _getDevConstraints(callback) { const devCnts = {audio: false, video: false}; + if (navigator.mediaDevices === undefined) { + OmUtil.error('Brower multimedia devices are blocked by security settings. Try https.'); + callback(devCnts); + return; + } navigator.mediaDevices.enumerateDevices() .then(function(devices) { devices.forEach(function(device) {