fixed formatting

This commit is contained in:
kaitlynkittyy 2024-04-10 22:00:07 -04:00
parent 006f4e96de
commit 45e4e1bd86

View file

@ -89,7 +89,7 @@ addPatch({
bitrateTarget: 600000 bitrateTarget: 600000
}); });
console.log("opts: ", opts); console.log("opts: ", opts);
if(opts?.encode) { if (opts?.encode) {
Object.assign(opts.encode, { Object.assign(opts.encode, {
framerate, framerate,
pixelCount: height * width pixelCount: height * width
@ -452,12 +452,12 @@ function ModalComponent({
} }
try { try {
submit({ submit({
id: selected!, id: selected!,
...settings ...settings
}); });
//reapply contraints after some time to let discord resubmit stream // reapply contraints after some time to let discord resubmit stream
//i believe there MUST be way to do it cleaner.. // i believe there MUST be way to do it cleaner..
setTimeout(() => { setTimeout(() => {
console.log(conn); console.log(conn);
const track = conn.input.stream.getVideoTracks()[0]; const track = conn.input.stream.getVideoTracks()[0];
@ -477,7 +477,6 @@ function ModalComponent({
console.log("New constraints:", track.getConstraints()); console.log("New constraints:", track.getConstraints());
}); });
}, 100); }, 100);
} catch { } catch {
console.log("Unable to start stream."); console.log("Unable to start stream.");
} }