← Back to release summary

Pan/Tilt support for Camera

Category
WebRTC
Type
New or changed feature
Status
Enabled by default (Chrome 87)
Intent stage
Prepare to ship

WPT details: Crbug: https://crbug.com/706434 WPT link: https://github.com/web-platform-tests/wpt/tree/master/mediacapture-image Feature specific tests are updated in https://chromium-review.googlesource.com/c/chromium/src/+/1508519

Summary

This feature allows developers to pan and tilt the camera using media constraints in getUserMedia(). https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-pan https://w3c.github.io/mediacapture-image/#dom-mediatrackcapabilities-tilt

Motivation

Many cameras have the ability to pan and tilt which is specially useful in the video conferencing(WebRTC), like steering the camera to the speaker, etc. Chrome has been using a private extension to satisfy this use case. Implementing this feature will allow developers to use this feature in a standards-compliant manner using media constraints in getUserMedia().

Standards & signals

Ecosystem

Docs: https://web.dev/camera-pan-tilt-zoom/

Samples: https://ptz.glitch.me/ https://github.com/riju/WebCamera/tree/master/samples/panTilt https://webrtc.github.io/samples/src/content/getusermedia/pan-tilt-zoom/

Explainers: https://github.com/w3c/mediacapture-image/blob/master/ptz-explainer.md

View on chromestatus.com