All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.antmedia.ipcamera.onvifdiscovery.OnvifDiscovery Maven / Gradle / Ivy

Go to download

Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.

There is a newer version: 2.11.3
Show newest version
package io.antmedia.ipcamera.onvifdiscovery;

import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author th
 * @date 2015-06-18
 */
public class OnvifDiscovery {
	
	private OnvifDiscovery() {
	}

	public static List discoverOnvifDevices(boolean useIpv4, List addressList) {
		final ArrayList onvifPointers = new ArrayList<>();
		final Collection urls = DeviceDiscovery.discoverWsDevicesAsUrls("^http$", ".*onvif.*", useIpv4,
				addressList);
		for (URL url : urls) {
			try {
				onvifPointers.add(url);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return onvifPointers;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy