Control usb PTZ camera in a browser using JavaScript

1.6k Views Asked by At

I have a Logitech PTZ USB camera. I have prepared a video call functionality using WebRtc. Now what I need is to add Pan, Tilt and Zoom controls within the browser so user can controls the camera based on his need.

Is it possible to implement PTZ control using JavaScript/WebRtc or any other third-party JS?

1

There are 1 best solutions below

1
Philipp Hancke On BEST ANSWER

Scott Hanselman wrote a PTZ controller for the Logitech cameras back in 2012: https://www.hanselman.com/blog/CloudControlledRemotePanTiltZoomCameraAPIForALogitechBCC950CameraWithAzureAndSignalR.aspx

The APIs needed for that are not available to Javascript sadly.