public class IphoneIpCameraCamDevice
extends com.github.sarxos.webcam.ds.ipcam.IpCamDevice
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAM_NAME
Kameraname
|
Constructor and Description |
---|
IphoneIpCameraCamDevice(java.lang.String host,
int port)
Erstellt ein DroidCam Instance durch Angabe der IP und des Ports.
|
IphoneIpCameraCamDevice(java.net.URL url)
Erstellt ein DroidCam Instance durch Angabe der URL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOnline()
Pings the IPCamera URL.
|
public static final java.lang.String CAM_NAME
public IphoneIpCameraCamDevice(java.lang.String host, int port) throws java.net.MalformedURLException
host
- Der Host des Streams. Kann auch IP-Adresse sein.port
- Der Port des Streams.java.net.MalformedURLException
public IphoneIpCameraCamDevice(java.net.URL url)
url
- Die URL zu dem mjpegfeed Stream der DroidCam App. Das Suffix mjpegfeed muss mit angegeben werden.public boolean isOnline()
true
if the response code
is in the 200-399 range.isOnline
in class com.github.sarxos.webcam.ds.ipcam.IpCamDevice
true
if the given HTTP URL has returned response code 200-399 on a HEAD request within the
given TIMEOUT_PING, otherwise false
.