WebRTC samples Control Pan-Tilt-Zoom 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