Class DeviceDiscovery

java.lang.Object
io.antmedia.ipcamera.onvifdiscovery.DeviceDiscovery

public class DeviceDiscovery extends Object
  • Field Details

  • Constructor Details

    • DeviceDiscovery

      private DeviceDiscovery()
  • Method Details

    • discoverWsDevicesAsUrls

      public static Collection<URL> discoverWsDevicesAsUrls(boolean useIpv4)
      Discover WS device on the local network and returns Urls
      Returns:
      list of unique device urls
    • discoverWsDevicesAsUrls

      public static Collection<URL> discoverWsDevicesAsUrls(String regexpProtocol, String regexpPath, boolean useIpv4, List<String> targetAddresses)
    • discoverWsDevicesAsUrls

      public static Collection<URL> discoverWsDevicesAsUrls(String regexpProtocol, String regexpPath, boolean useIpv4)
      Discover WS device on the local network with specified filter
      Parameters:
      regexpProtocol - url protocol matching regexp like "^http$", might be empty ""
      regexpPath - url path matching regexp like "onvif", might be empty ""
      Returns:
      list of unique device urls filtered
    • discoverWsDevices

      public static Collection<String> discoverWsDevices(String probeMsgTemplate, boolean useIpv4, List<String> targetAddresses)
      Discover WS device on the local network
      Parameters:
      useIpv4 -
      targetAddresses -
      Returns:
      list of unique devices access strings which might be URLs in most cases
    • tryAddress

      public static int tryAddress(String probeMsgTemplate, Collection<String> addresses, CountDownLatch serverStarted, CountDownLatch serverFinished, ExecutorService executorService, int port, InetAddress address)