fix(presenter): go back to using standard resolutions for presenter

This commit is contained in:
Jaya Allamsetty 2020-02-19 14:48:28 -05:00 committed by Jaya Allamsetty
parent 4c065f2de1
commit 8dbd1ba1b7
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,8 @@ export async function createLocalPresenterTrack(options, desktopHeight) {
// compute the constraints of the camera track based on the resolution
// of the desktop screen that is being shared.
const cameraHeights = [ 120, 180, 240, 360, 480, 600, 720 ];
const proportion = 4;
const cameraHeights = [ 180, 270, 360, 540, 720 ];
const proportion = 5;
const result = cameraHeights.find(
height => (desktopHeight / proportion) < height);
const constraints = {