Skip to content

Commit

Permalink
feat: Adjust resolution/framerates for better video experience (#15582)
Browse files Browse the repository at this point in the history
  • Loading branch information
z-dule authored Aug 15, 2023
1 parent 4938e85 commit 5256f90
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/script/media/MediaConstraintsHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,37 +62,38 @@ export class MediaConstraintsHandler {
},
},
DISPLAY_MEDIA: {
frameRate: 5,
height: {
ideal: 1080,
max: 1080,
},
},
USER_MEDIA: {
frameRate: 30,
frameRate: 5,
height: {exact: 720},
mediaSource: 'screen',
},
},
VIDEO: {
[VIDEO_QUALITY_MODE.FULL_HD]: {
frameRate: 30,
frameRate: 15,
height: 1080,
width: 1920,
},
[VIDEO_QUALITY_MODE.GROUP]: {
frameRate: 30,
height: 240,
width: 320,
frameRate: 15,
height: 720,
width: 1280,
},
[VIDEO_QUALITY_MODE.HD]: {
frameRate: 30,
frameRate: 15,
height: 720,
width: 1280,
},
[VIDEO_QUALITY_MODE.MOBILE]: {
frameRate: 30,
height: 480,
width: 640,
frameRate: 15,
height: 720,
width: 1280,
},
PREFERRED_FACING_MODE: 'user',
},
Expand Down

0 comments on commit 5256f90

Please sign in to comment.