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)

Camera control

Well, that's about the look of the JS script itself

I would be very grateful if anyone else tells the library

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)

  • 2
    Make your own sliders without pulling, no? - andreymal
  • one
    Ajax requests can simply be viewed in the network monitoring in the developer’s tools of any browser without any pull - out - andreymal
  • @andreymal Its possible, through the same Python onvif, but the response speed is long, on PTZ cameras it is sometimes inappropriate (the fastest possible speed is needed). Well, that was the idea of ​​using Ajax to pull out something like html / js (control form with a script) directly to the site, which would be faster. Well, at the expense of "viewing requests", it's all good, but I somehow need to use them, and therefore it is necessary to make a request, but how? - Bogdan Sergeevich
  • How to make ajax request? The answer to this question is completely littered with the entire Internet, really did not find? - andreymal
  • @andreymal I searched, found similar requests, but that at the same time to jerk HTML with JS inside, I could not find it (I might not search well, I do not deny it), so I decided to find out from knowledgeable people that they would explain if it was possible to do it without crutches and what Is it relevant in terms of speed or can I just do nonsense, frankly and easier, OnFiv - Bogdan Sergeevich

0