fix(presenter): go back to using standard resolutions for presenter
This commit is contained in:
parent
4c065f2de1
commit
8dbd1ba1b7
|
@ -27,8 +27,8 @@ export async function createLocalPresenterTrack(options, desktopHeight) {
|
||||||
|
|
||||||
// compute the constraints of the camera track based on the resolution
|
// compute the constraints of the camera track based on the resolution
|
||||||
// of the desktop screen that is being shared.
|
// of the desktop screen that is being shared.
|
||||||
const cameraHeights = [ 120, 180, 240, 360, 480, 600, 720 ];
|
const cameraHeights = [ 180, 270, 360, 540, 720 ];
|
||||||
const proportion = 4;
|
const proportion = 5;
|
||||||
const result = cameraHeights.find(
|
const result = cameraHeights.find(
|
||||||
height => (desktopHeight / proportion) < height);
|
height => (desktopHeight / proportion) < height);
|
||||||
const constraints = {
|
const constraints = {
|
||||||
|
|
Loading…
Reference in New Issue