Fixed res and fps changing.. one more time
This commit is contained in:
parent
ac3d2cb2c4
commit
83d4164eac
1 changed files with 9 additions and 6 deletions
|
@ -88,6 +88,7 @@ addPatch({
|
|||
bitrateMax: 8000000,
|
||||
bitrateTarget: 600000
|
||||
});
|
||||
console.log("opts: ", opts);
|
||||
// Object.assign(opts.encode, {
|
||||
// framerate,
|
||||
// pixelCount: height * width
|
||||
|
@ -95,7 +96,8 @@ addPatch({
|
|||
Object.assign(opts.capture, {
|
||||
framerate,
|
||||
width,
|
||||
height
|
||||
height,
|
||||
pixelCount: height * width
|
||||
});
|
||||
}
|
||||
});
|
||||
|
@ -447,11 +449,12 @@ function ModalComponent({
|
|||
console.log("No current stream.");
|
||||
}
|
||||
try {
|
||||
submit({
|
||||
id: selected!,
|
||||
...settings
|
||||
});
|
||||
if (conn) {
|
||||
if(!conn) {
|
||||
submit({
|
||||
id: selected!,
|
||||
...settings
|
||||
});
|
||||
} else {
|
||||
console.log(conn);
|
||||
const track = conn.input.stream.getVideoTracks()[0];
|
||||
console.log(track);
|
||||
|
|
Reference in a new issue