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.
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.
Status in Chromium
Origin trial (tracking bug) in:
- Chrome for desktop release 90
Consensus & Standardization
Intent to Prototype urlIntent to Prototype thread
Search tagsgetDisplayMedia, capture, getCurrentBrowsingContextMedia, share, sharing,
Last updated on 2021-07-22