ONVIF - beginning of Device discovery

后端 未结 2 621
有刺的猬
有刺的猬 2020-12-10 17:37

I am planning to do a java onvif application. I have created a new project and generated sources from devicemgmt.wsdl.Also generated the classes from remote discovery.wsdl.

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-10 18:01

    I had the same problem, CXF is simply to big, please check my approach: JavaWsDiscovery at https://github.com/thhart/javaWsDiscovery.

    It uses a simple network probe as suggested by Onvif standards to be able to identify any devices on your local network, following line will return you all available devices:

    final Collection urls = DeviceDiscovery.discoverWsDevicesAsUrls("^http$", ".onvif.");

提交回复
热议问题