Increase max send resolution for screenshare

This commit is contained in:
Rashad Sookram 2024-01-04 17:26:29 -05:00 committed by GitHub
parent 422ebf1bc8
commit dbc29037ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 13 deletions

View file

@ -16,7 +16,6 @@ import { getCountryCode } from './types/PhoneNumber';
export type ConfigKeyType =
| 'cds.disableCompatibilityMode'
| 'desktop.calling.sendScreenShare1800'
| 'desktop.cdsi.returnAcisWithoutUaks'
| 'desktop.clientExpiration'
| 'desktop.groupMultiTypingIndicators'

View file

@ -40,7 +40,6 @@ import {
import { uniqBy, noop } from 'lodash';
import Long from 'long';
import * as RemoteConfig from '../RemoteConfig';
import type {
ActionsType as CallingReduxActionsType,
GroupCallParticipantInfoType,
@ -1431,20 +1430,13 @@ export class CallingClass {
this.videoCapturer.disable();
if (source) {
this.hadLocalVideoBeforePresenting = hasLocalVideo;
const options = {
this.videoCapturer.enableCaptureAndSend(call, {
// 15fps is much nicer but takes up a lot more CPU.
maxFramerate: 5,
maxHeight: 1080,
maxWidth: 1920,
maxHeight: 1800,
maxWidth: 2880,
screenShareSourceId: source.id,
};
if (RemoteConfig.isEnabled('desktop.calling.sendScreenShare1800')) {
options.maxWidth = 2880;
options.maxHeight = 1800;
}
this.videoCapturer.enableCaptureAndSend(call, options);
});
this.setOutgoingVideo(conversationId, true);
} else {
this.setOutgoingVideo(