Kaynağa Gözat

fix(electron): Check for unsuported gDM

Wrong check for unsupported getDisplayMedia when starting screen sharing will cause the app to never fallback to getUserMedia flow. This breaks screen sharing for all old electron clients that do not support getDisplayMedia.
release-8443
Hristo Terezov 9 ay önce
ebeveyn
işleme
6e9b9c017a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      modules/RTC/ScreenObtainer.js

+ 1
- 1
modules/RTC/ScreenObtainer.js Dosyayı Görüntüle

@@ -315,7 +315,7 @@ const ScreenObtainer = {
315 315
 
316 316
                 logger.warn('getDisplayMedia error', JSON.stringify(constraints), JSON.stringify(errorDetails));
317 317
 
318
-                if (errorDetails.code === DOMException.NOT_SUPPORTED_ERR) {
318
+                if (errorDetails.errorCode === DOMException.NOT_SUPPORTED_ERR) {
319 319
                     // This error is thrown when an Electron client has not set a permissions handler.
320 320
                     errorCallback(new JitsiTrackError(JitsiTrackErrors.SCREENSHARING_NOT_SUPPORTED_ERROR));
321 321
                 } else if (errorDetails.errorMsg?.indexOf('denied by system') !== -1) {

Loading…
İptal
Kaydet