front: fix webrtc webcam feed on Firefox

Seems like Firefox doesn't support specifing both exact and ideal
constraints...
This commit is contained in:
Piotr Dobrowolski 2021-01-10 17:03:05 +01:00
parent c2d0cda441
commit 7f8cc76eb7

View File

@ -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