DS-2DE7174-AE presets on website

wimgrandia

n3wb
Joined
Jul 15, 2015
Messages
4
Reaction score
0
Hi,

Since a week i have this Hikvision PTZ camera and it works great.
It's visible on my website and works like a charm. I've also made a couple of presets.

But is there a way that viewers on my website can choose which preset they are looking at?
I've googled my ass of but i probably don't use the correct words..
Something to do with Onvif???

thanks!
Wim
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,689
Reaction score
14,057
Location
USA
That depends on how you are embedding the camera on your website. You will most likely have to user server-side logic to activate presets on the camera when your users click buttons. I have attached Hikvision's API documentation which may be of use.
 

Attachments

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,689
Reaction score
14,057
Location
USA
In essence you will need to make a web request to the camera following this pattern: /PTZCtrl/channels/<ID>/presets/<ID>/goto

This is likely to require authentication however, so it would be best done server-side so you don't have to expose the camera's address and login info to the public.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,689
Reaction score
14,057
Location
USA
You are quite right. I missed the fact it needs to be an HTTP PUT request which definitely complicates things.
 
Top