Skip to content

Commit

Permalink
fix: remove optimize check for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 committed Mar 22, 2024
1 parent e191762 commit 64d9e16
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/hms-video-store/src/sdk/LocalTrackManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64d9e16

Please sign in to comment.