From 64d9e16fe9a5b5ddd8d17ad0009ad5fd8da1e594 Mon Sep 17 00:00:00 2001 From: amar-1995 Date: Fri, 22 Mar 2024 13:16:52 +0530 Subject: [PATCH] fix: remove optimize check for testing --- packages/hms-video-store/src/sdk/LocalTrackManager.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/hms-video-store/src/sdk/LocalTrackManager.ts b/packages/hms-video-store/src/sdk/LocalTrackManager.ts index a72b3c20a0..cc2b41479f 100644 --- a/packages/hms-video-store/src/sdk/LocalTrackManager.ts +++ b/packages/hms-video-store/src/sdk/LocalTrackManager.ts @@ -217,9 +217,10 @@ export class LocalTrackManager { HMSLogger.d('retrieving screenshare with ', { config }, { constraints }); // @ts-ignore [https://github.com/microsoft/TypeScript/issues/33232] stream = (await navigator.mediaDevices.getDisplayMedia(constraints)) as MediaStream; - if (optimise) { - await this.optimizeScreenShareConstraint(stream, constraints); - } + console.log('optimize ', optimise); + // if (optimise) { + await this.optimizeScreenShareConstraint(stream, constraints); + // } } catch (err) { HMSLogger.w(this.TAG, 'error in getting screenshare - ', err); const error = BuildGetMediaError(err as Error, HMSGetMediaActions.SCREEN);