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,
|
bitrateMax: 8000000,
|
||||||
bitrateTarget: 600000
|
bitrateTarget: 600000
|
||||||
});
|
});
|
||||||
|
console.log("opts: ", opts);
|
||||||
// Object.assign(opts.encode, {
|
// Object.assign(opts.encode, {
|
||||||
// framerate,
|
// framerate,
|
||||||
// pixelCount: height * width
|
// pixelCount: height * width
|
||||||
|
@ -95,7 +96,8 @@ addPatch({
|
||||||
Object.assign(opts.capture, {
|
Object.assign(opts.capture, {
|
||||||
framerate,
|
framerate,
|
||||||
width,
|
width,
|
||||||
height
|
height,
|
||||||
|
pixelCount: height * width
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -447,11 +449,12 @@ function ModalComponent({
|
||||||
console.log("No current stream.");
|
console.log("No current stream.");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
if(!conn) {
|
||||||
submit({
|
submit({
|
||||||
id: selected!,
|
id: selected!,
|
||||||
...settings
|
...settings
|
||||||
});
|
});
|
||||||
if (conn) {
|
} else {
|
||||||
console.log(conn);
|
console.log(conn);
|
||||||
const track = conn.input.stream.getVideoTracks()[0];
|
const track = conn.input.stream.getVideoTracks()[0];
|
||||||
console.log(track);
|
console.log(track);
|
||||||
|
|
Reference in a new issue