applied resolution bounds to try and constrain it to discord's supported resolutions

This commit is contained in:
kaitlynkittyy 2024-04-14 14:10:57 -04:00
parent f1f1c9a7fd
commit cb8601b38e
2 changed files with 6 additions and 2 deletions

View file

@ -468,6 +468,8 @@ function ModalComponent({
const newConstraints = {
...constraints,
frameRate,
width: { min: 640, ideal: width, max: 2560 },
height: { min: 480, ideal: height, max: 1440 },
advanced: [{ width: width, height: height }],
resizeMode: "none"
};
@ -502,6 +504,8 @@ function ModalComponent({
const newConstraints = {
...constraints,
frameRate,
width: { min: 640, ideal: width, max: 2560 },
height: { min: 480, ideal: height, max: 1440 },
advanced: [{ width: width, height: height }],
resizeMode: "none"
};

View file

@ -34,8 +34,8 @@ if (isLinux) {
const newConstraints = {
...constraints,
frameRate,
width,
height,
width: { min: 640, ideal: width, max: 2560 },
height: { min: 480, ideal: height, max: 1440 },
advanced: [{ width: width, height: height }],
resizeMode: "none"
};