mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 14:45:52 -05:00
Fixed messenger in IE11.
This commit is contained in:
parent
bd5d52ccc7
commit
dc6b9217a9
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "meshcentral",
|
"name": "meshcentral",
|
||||||
"version": "0.2.5-a",
|
"version": "0.2.5-b",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Remote Management",
|
"Remote Management",
|
||||||
"Intel AMT",
|
"Intel AMT",
|
||||||
|
@ -116,14 +116,13 @@
|
|||||||
// 0 = nomedia, 1 = miconly, 2 = mic&cam
|
// 0 = nomedia, 1 = miconly, 2 = mic&cam
|
||||||
function getUserMediaSupport(func) {
|
function getUserMediaSupport(func) {
|
||||||
try {
|
try {
|
||||||
navigator.mediaDevices.enumerateDevices()
|
navigator.mediaDevices.enumerateDevices().then(function (devices) {
|
||||||
.then(devices => {
|
|
||||||
try {
|
try {
|
||||||
var mic = 0, cam = 0;
|
var mic = 0, cam = 0;
|
||||||
devices.forEach(device => {
|
devices.forEach(function (device) {
|
||||||
if (device.kind === 'audioinput') { mic = 1; }
|
if (device.kind === 'audioinput') { mic = 1; }
|
||||||
if (device.kind === 'videoinput') { cam = 1; }
|
if (device.kind === 'videoinput') { cam = 1; }
|
||||||
})
|
});
|
||||||
if (mic == 0) { func(0); }
|
if (mic == 0) { func(0); }
|
||||||
func(mic + cam);
|
func(mic + cam);
|
||||||
} catch (ex) { }
|
} catch (ex) { }
|
||||||
|
Loading…
Reference in New Issue
Block a user