Back to Samples

WebRTC samples Control Pan-Tilt-Zoom Camera

src/content/getusermedia/pan-tilt-zoom/index.html

latest516 B
Original Source

WebRTC samplesControl Pan-Tilt-Zoom Camera

Open camera

Pan:

Tilt:

Zoom:

Display the video stream from getUserMedia() in a video element and control pan, tilt, and zoom if camera supports Pan-Tilt-Zoom.

The MediaStreamTrack object track is in global scope, so you can inspect it from the console.

View source on GitHub