From 7f8cc76eb735da77012e0c939ed814143b120e2a Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sun, 10 Jan 2021 17:03:05 +0100 Subject: [PATCH] front: fix webrtc webcam feed on Firefox Seems like Firefox doesn't support specifing both exact and ideal constraints... --- front/src/WebRtc/MediaManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/WebRtc/MediaManager.ts b/front/src/WebRtc/MediaManager.ts index 4aa240cd..6f78f283 100644 --- a/front/src/WebRtc/MediaManager.ts +++ b/front/src/WebRtc/MediaManager.ts @@ -13,7 +13,7 @@ if(localValueVideo){ let videoConstraint: boolean|MediaTrackConstraints = { width: { min: 640, ideal: 1280, max: 1920 }, height: { min: 400, ideal: 720 }, - frameRate: {exact: valueVideo, ideal: valueVideo}, + frameRate: { ideal: valueVideo }, facingMode: "user", resizeMode: 'crop-and-scale', aspectRatio: 1.777777778