Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(local-recordings) style, for readability
Saúl Ibarra Corretgé99669dc86935
diff --git a/react/features/recording/components/Recording/LocalRecordingManager.web.ts b/react/features/recording/components/Recording/LocalRecordingManager.web.tsindex 102e79fffa..f92e1810bb 100644--- a/react/features/recording/components/Recording/LocalRecordingManager.web.ts+++ b/react/features/recording/components/Recording/LocalRecordingManager.web.ts@@ -216,18 +216,21 @@ const LocalRecordingManager: ILocalRecordingManager = {throw new Error('NoMicTrack');}- // @ts-ignoregdmStream = await navigator.mediaDevices.getDisplayMedia({- video: { displaySurface: 'browser',- frameRate: 30 },- audio: false, // @ts-ignore+ video: {+ displaySurface: 'browser',+ frameRate: 30+ },+ audio: false,+ // @ts-ignorepreferCurrentTab: true});const isBrowser = gdmStream.getVideoTracks()[0].getSettings().displaySurface === 'browser';+ const matchesHandle = (supportsCaptureHandle // @ts-ignore+ && gdmStream.getVideoTracks()[0].getCaptureHandle()?.handle === `JitsiMeet-${tabId}`);- if (!isBrowser || (supportsCaptureHandle // @ts-ignore- && gdmStream.getVideoTracks()[0].getCaptureHandle()?.handle !== `JitsiMeet-${tabId}`)) {+ if (!isBrowser || !matchesHandle) {gdmStream.getTracks().forEach((track: MediaStreamTrack) => track.stop());throw new Error('WrongSurfaceSelected');}