← Back to release summary

MediaTrackConstraintSet.displaySurface

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

Summary

When getDisplayMedia() is called, the browser offers the user a choice of display surfaces: tabs, windows, or monitors. Using the displaySurface constraint, the Web application may now hint to the browser if it prefers that a certain surface type be more prominently offered to the user.

Motivation

Less friction for user journeys that are tied to specific pairings between the capturing Web application and a specific capture source type.

Standards & signals

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

View on chromestatus.com