Explorar el Código

feat(ScreenObtainer) Allow seamless switching of tab capture.

Allow users to seamlessly switch which tab they are sharing without having to stop the current share and select a new tab again. This is supported on Chrome 107 onwards.
dev1
Jaya Allamsetty hace 3 años
padre
commit
784f1d4e8a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      modules/RTC/ScreenObtainer.js

+ 5
- 0
modules/RTC/ScreenObtainer.js Ver fichero

@@ -221,6 +221,11 @@ const ScreenObtainer = {
221 221
             && this.options?.testing?.setScreenSharingResolutionConstraints;
222 222
         let video = {};
223 223
 
224
+        // Allow users to seamlessly switch which tab they are sharing without having to select the tab again.
225
+        if (browser.isChromiumBased() && browser.isVersionGreaterThan(106)) {
226
+            video.surfaceSwitching = 'include';
227
+        }
228
+
224 229
         if (typeof desktopSharingFrameRate === 'object') {
225 230
             video.frameRate = desktopSharingFrameRate;
226 231
         }

Loading…
Cancelar
Guardar