Camera pan, tilt and zoom control
Lets a site move or zoom a PTZ-capable camera.
In one line
Can move or zoom a motorized camera, once the site already has camera access
Lets a site move or zoom a PTZ-capable camera.
Gives the site physical control of camera direction and zoom on conferencing cameras, so it can aim at people and rooms. Gated by a separate permission on top of camera access.
What it can and can't do
What the user does: You use pan or zoom controls on a video call or monitoring page and approve the extra prompt
It can
- Pan, tilt and zoom a camera that has those motors or lenses
- Change the framing during a call or while watching a feed
- Use all three movements on that camera after one approval
It cannot
- Move a camera that has no motor or zoom
- Control the camera without the separate camera movement prompt in Chrome
- Grant only zoom and keep pan locked; the approval covers all three
- Work in Firefox, Safari or iPhone browsers, which do not offer it
How it differs between platforms: Works in Chrome and Edge (desktop and Android). Firefox, Safari and iPhone browsers do not support it.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 87 | 2020-11-17 | None |
| Edge | Supported | 87 | 2020-11-19 | None |
| Firefox | Not supported | Not available | Not listed | None |
| Safari | Not supported | Not available | Not listed | None |
| Safari on iPhone | Not supported | Not available | Not listed | None |
| Chrome on Android | Supported | 87 | 2020-11-17 | None |
| Samsung Internet | Not supported | Not available | Not listed | None |
How a site asks for it
| API | getUserMedia({video: {pan: true, tilt: true, zoom: true}}); track.applyConstraints({advanced: [{pan, tilt, zoom}]}); getCapabilities() |
| Permission name | camera (with panTiltZoom: true) |
| Permissions policy | camera |
| Browser compat keys | api.MediaTrackSettings.panapi.MediaTrackSettings.tiltapi.MediaTrackSettings.zoom |
| How access is granted | prompt |
| What the user sees | Chrome shows a distinct prompt when constraints request pan, tilt or zoom: Allow control of camera movements. Granting unlocks all three on that device. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | Stored with the camera permission per origin |
| How to take it back | Site settings > Camera, padlock icon |
| Inside an iframe | Needs allow="camera" in cross-origin iframes |
Typical flow
- Request video with panTiltZoom permission descriptor
- Browser shows PTZ prompt
- Read getCapabilities() ranges
- applyConstraints with new values
Data you get
What comes back: Camera pan, tilt and zoom settings
Shape: object
How often: on request
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
pan | float | arc seconds | device range (often about -648000 to 648000) | device step |
tilt | float | arc seconds | device range | device step |
zoom | float | ratio | 1 to device max (often 1 to 10) | device step |
Technical limits
- Only works on cameras that advertise PTZ
- Requires camera permission first
- Not in Firefox or Safari
The story
What it is
Lets a site tilt, turn and zoom a motorized camera, not only look through it.
For you
If you have a camera that can move, such as a conference room camera, a second prompt asks whether the site may point and zoom it. If you say yes, you may see the camera swing toward a speaker without anyone touching it.
For makers
Meeting and telehealth sites want to frame people well and follow whoever talks, without a separate control app. A web page can then run a whole room camera system. It also saves support calls about camera setup.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | A web based room system in a boardroom zooms in on whoever is talking, so remote staff can see faces and not a wide table shot. | None named |
| health | A doctor on a telehealth site zooms the patient camera onto a rash or a wound so the care team can see detail from far away. | Teladoc, Doxy.me |
| education | A lecture hall camera follows the teacher around the room while students watch the stream in a browser tab. | Panopto, Echo360 |
| live | A church or school streams a service on the web, and the volunteer pans the camera from a browser page on a laptop. | Boxcast, Vimeo Live |
| security | A shop owner opens a web page that lets them aim a motorized store camera at the door or the till from home. | None named |
| smart-home | A pet camera page lets you swivel and zoom to find your cat, using a plain browser tab on your phone. | None named |
| games | A tabletop board game stream lets the host steer an overhead camera to show the cards on the table to remote players. | None named |
Risks
- Camera aimed at people without their notice
- Gives a site physical control of hardware
What the platform says
- Google Chrome: Camera pan, tilt and zoom. Chrome explains that web apps can steer PTZ webcams for conferencing, with a separate permission from plain camera access.
Good uses and abuse
Legitimate uses
- Remote classrooms and surgery cameras
- Conferencing rooms with auto-framing
Known abuse
- Remotely aiming a camera at people after capture is granted
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2020-11, Chrome 87: Camera PTZ control ships behind a permission
Related capabilities
Related
- Camera (video capture). Can see and record live video from your camera while the tab is open
Sources
How well checked: Based on official documentation.