Our company has an internal site on which there is access to IP cameras, the essence is this: click on the camera icon and the image is displayed, but there is one BUT: PTZ cameras. Now the control of PTZ cameras is done on JS under Django, but done with buttons, which is not convenient, and a large response delay.
The camera has a native web-muzzle, on which there are sliders to control (turn, zoom), they are written in JS, and so - how to pull it out with Ajax to the local site (on which we are viewing the cameras)
Well, that's about the look of the JS script itself
FOLLOWING : We only need to pull out the PTZ camera MANAGEMENT, not the video stream and insert it on another site. If additional information is needed, I will answer all, thank you in advance)

