Skip to content

Camera, torch and zoom

Camera selection, torch and zoom are all capabilities of the running media track. The component reports what the browser says is available and never offers a control the hardware will refuse.

Live Idle
Ready

Available cameras

None listed yet. Browsers withhold the list, and camera labels, until permission has been granted at least once.

Negotiated track

No camera open.

Controls

Torch and zoom are almost always rear-camera-only, and support varies by browser. Both calls report whether the browser accepted them rather than throwing.

An unhandled error has occurred. Reload 🗙