fix(multi-stream) use highest video quality for screenshare

This commit is contained in:
William Liang 2022-04-08 13:51:42 -04:00 committed by Jaya Allamsetty
parent 0cf1b7e3d9
commit c246174555
1 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,12 @@ function _updateReceiverVideoConstraints({ getState }) {
}
}
if (remoteScreenShares?.length) {
remoteScreenShares.forEach(sourceName => {
receiverConstraints.constraints[sourceName] = { 'maxHeight': VIDEO_QUALITY_LEVELS.ULTRA };
});
}
} else {
receiverConstraints = {
constraints: {},