|
@@ -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
|
}
|