ONVIF : How to form the DeviceIO web service address from the IP address of an ONVIF supported IP camera

断了今生、忘了曾经 提交于 2019-12-12 10:25:17

问题


I have the IP address of an ONVIF supported IP camera,how do I form the address of the DeviceIO web service?


回答1:


A robust way to do it is the following:

  1. Probe the camera, by using the WS-Discovery
  2. Extract the field XAddr from the ProbeMatch. Usually it is http://<ip_addr>/onvif/device_service, but it is not guaranteed always to be like this.
  3. Verify if your camera supports GetCapabilities or it has the new GetServices.
  4. Either from GetCapabilitiesRepsonse or GetServicesResponse verify if your device supports the Device I/O service and get the corresponding XAddr.

Beware that the initial handshake may be tricky, because if the camera only supports UsernameToken for authtentication, you'll need to syncronize your client with the device's clock. Have a look at the ONVIF Application Programmer's Guide for further details.



来源:https://stackoverflow.com/questions/47427595/onvif-how-to-form-the-deviceio-web-service-address-from-the-ip-address-of-an-o

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!