← Back to release summary

DisplayMediaStreamConstraints.surfaceSwitching

Category
WebRTC
Type
Chromium catches up
Status
Enabled by default (Chrome 107)
Intent stage
Shipped

Summary

Adds an option to programmatically control whether Chrome shows a button for switching tabs while screen-shared. This option will be passed to navigator.mediaDevices.getDisplayMedia().

Motivation

The [Share this tab instead] button allows users to seamlessly switch which tab they’re sharing, without having to select the video-conferencing tab again (1), click a button to initiate getDisplayMedia() again (2), and selecting a new tab out of a long list of tabs again (3). This behavior is exposed conditionally because not all Web applications are able to handle this behavior. Most notably, applications centered around self-capture and cropping might have trouble. For a more elaborate discussion, see https://github.com/w3c/mediacapture-screen-share/issues/223.

Standards & signals

Explainers: https://docs.google.com/document/d/1kqdLoUcwWe8znVCMXyz2FHk9WMylHbIo7gUjhyHmY_w/edit?usp=sharing

View on chromestatus.com