add more params for testing
This commit is contained in:
parent
31907d9ba1
commit
8f62a2eaae
1 changed files with 19 additions and 2 deletions
|
@ -461,8 +461,25 @@ function ModalComponent({
|
||||||
console.log("Applied constraints from ScreenSharePicker successfully.");
|
console.log("Applied constraints from ScreenSharePicker successfully.");
|
||||||
console.log("New constraints:", track.getConstraints());
|
console.log("New constraints:", track.getConstraints());
|
||||||
});
|
});
|
||||||
|
conn.videoQualityManager.options.desktopBitrate = {
|
||||||
// changing stream quality description
|
max: 8000000,
|
||||||
|
min: 500000
|
||||||
|
};
|
||||||
|
conn.videoQualityManager.options.videoBitrate = {
|
||||||
|
max: 8000000,
|
||||||
|
min: 500000
|
||||||
|
};
|
||||||
|
conn.videoQualityManager.options.videoBudget = {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
framerate: frameRate
|
||||||
|
};
|
||||||
|
conn.videoQualityManager.options.videoCapture = {
|
||||||
|
width,
|
||||||
|
height,
|
||||||
|
framerate: frameRate
|
||||||
|
};
|
||||||
|
// changing stream quality descriptions
|
||||||
conn.videoStreamParameters[0].maxFrameRate = Number(settings.fps);
|
conn.videoStreamParameters[0].maxFrameRate = Number(settings.fps);
|
||||||
conn.videoStreamParameters[0].maxResolution.height = Number(settings.resolution);
|
conn.videoStreamParameters[0].maxResolution.height = Number(settings.resolution);
|
||||||
conn.videoStreamParameters[0].maxResolution.width = Math.round(height * (16 / 9));
|
conn.videoStreamParameters[0].maxResolution.width = Math.round(height * (16 / 9));
|
||||||
|
|
Reference in a new issue