← Back to release summary

preferCurrentTab

Category
Realtime / Communication
Type
New or changed feature
Status
Enabled by default (Chrome 94)
Intent stage
Prepare to ship

Summary

We introduce a dictionary member to MediaStreamConstraints called preferCurrentTab. It's a boolean defaulting to false. When getDisplayMedia() is called with preferCurrentTab=true, the browser should offer the current tab as the most prominent capture source.

Motivation

Sometimes a page wishes to capture itself. For example, a slide-deck might wish to capture itself and stream itself to a conference call, or a user might wish to capture footage of themselves playing an online game.

Standards & signals

Explainers: https://github.com/WICG/prefer-current-tab/blob/main/README.md

View on chromestatus.com