From 8db615551a43d03b33b9dde00bc9e9eacec58d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Thu, 25 Jun 2020 10:33:26 +0200 Subject: [PATCH] Fixing device switching in Firefox --- front/src/WebRtc/MediaManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front/src/WebRtc/MediaManager.ts b/front/src/WebRtc/MediaManager.ts index a56e0c3c..50f4bf15 100644 --- a/front/src/WebRtc/MediaManager.ts +++ b/front/src/WebRtc/MediaManager.ts @@ -161,7 +161,9 @@ export class MediaManager { if (typeof(video) === 'boolean' || video === undefined) { video = {} } - video.deviceId = id; + video.deviceId = { + exact: id + }; return this.getCamera(); }