you can control the supported PTZ devices
use the following links:
direction followed by number of steps
http://localhost:8080/pos-1,1 moves to 1, 1
http://localhost:8080/pos--10,-10 moves to -10, -10
http://localhost:8080/pos--10,10 moves to -10, 10
http://localhost:8080/pos-10,10 moves to 10, 10
http://localhost:8080/pos-10,-10 moves to 10, -10
if your AbelCam is on, you can try the examples aboveWhen the move is completed, AbelCam returns a page informing what has been done.
To configure the page to be returned, put a file named movedone.html in the wwwroot folder.
AbelCams Server Side Includes are available for that html file.
Multiple PTZ devicesIf you have multiple PTZ devices, you can address them by passing their number in the URL:
http://localhost:8080/pos0-+1,-10 moves device #0 to to 1, -10You may also control more than one device per URL:
moves device #0 to to 10, 10, device #1 to 50,50 and zooms device #2 to 1.5
ImageMapthis sample uses camera #0
<a href="/imagemap"><img src="/current0.jpg?<!--#random -->" ismap border="0" alt="Click to move camera"></a>
Clicking on the image transfers the coordinates to AbelCam. The camera will be positioned. After completion of the move, the browser will be redirected to the same page it came from.
The #random include is used to prevent caching in the browser.
The version below creates an image for positioning showing the current PT position as a red dot, just like the Pan Tilt window within AbelCam.
When the image used as imagemap has a different size than the output size of the camera to be positioned, you need to use the size parameter in the imagemap url for the coordinates to be calculated correctly.
If multiple cameras are to be positioned from the same page, a cam=x parameter needs to be provided as well.
<a href="/imagemap?size=160x120"><img src="/ptzmap.jpg?r=<!--#random -->&cam=0&size=160x120" ismap border="0" alt="Click to move camera"></a>See the imagemap.html file in the wwwroot folder, which should also be available as
Zoom Controlzoom control is implemented with the /zoom URL.
V = zoom value, range limits are defined in the camera zoom configuration
If V has a sign (+/-), the value is relative, it will be added to the current zoom value
If the input resolution = output resolution, a zoom value of 1.0 shows the whole image, lower values (if permitted by the zoom configuration) will create a black frame around the image.