fixed formatting
This commit is contained in:
parent
006f4e96de
commit
45e4e1bd86
1 changed files with 6 additions and 7 deletions
|
@ -89,7 +89,7 @@ addPatch({
|
|||
bitrateTarget: 600000
|
||||
});
|
||||
console.log("opts: ", opts);
|
||||
if(opts?.encode) {
|
||||
if (opts?.encode) {
|
||||
Object.assign(opts.encode, {
|
||||
framerate,
|
||||
pixelCount: height * width
|
||||
|
@ -456,8 +456,8 @@ function ModalComponent({
|
|||
...settings
|
||||
});
|
||||
|
||||
//reapply contraints after some time to let discord resubmit stream
|
||||
//i believe there MUST be way to do it cleaner..
|
||||
// reapply contraints after some time to let discord resubmit stream
|
||||
// i believe there MUST be way to do it cleaner..
|
||||
setTimeout(() => {
|
||||
console.log(conn);
|
||||
const track = conn.input.stream.getVideoTracks()[0];
|
||||
|
@ -477,7 +477,6 @@ function ModalComponent({
|
|||
console.log("New constraints:", track.getConstraints());
|
||||
});
|
||||
}, 100);
|
||||
|
||||
} catch {
|
||||
console.log("Unable to start stream.");
|
||||
}
|
||||
|
|
Reference in a new issue