Class IphoneIpCameraCamDevice
- java.lang.Object
-
- com.github.sarxos.webcam.ds.ipcam.IpCamDevice
-
- de.frankmuenster.jameica.qrscanner.ipcam.IphoneIpCameraCamDevice
-
- All Implemented Interfaces:
com.github.sarxos.webcam.WebcamDevice
,com.github.sarxos.webcam.WebcamDevice.BufferAccess
,com.github.sarxos.webcam.WebcamDevice.FPSSource
public class IphoneIpCameraCamDevice extends com.github.sarxos.webcam.ds.ipcam.IpCamDevice
Spezielle IpCamDevice Implementierung für Iphaone IP Camera App. Überschreibt isOnline.- Author:
- Frank Münster
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CAM_NAME
Kameraname
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isOnline()
Pings the IPCamera URL.
-
-
-
Field Detail
-
CAM_NAME
public static final java.lang.String CAM_NAME
Kameraname- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IphoneIpCameraCamDevice
public IphoneIpCameraCamDevice(java.lang.String host, int port) throws java.net.MalformedURLException
Erstellt ein DroidCam Instance durch Angabe der IP und des Ports.- Parameters:
host
- Der Host des Streams. Kann auch IP-Adresse sein.port
- Der Port des Streams.- Throws:
java.net.MalformedURLException
-
IphoneIpCameraCamDevice
public IphoneIpCameraCamDevice(java.net.URL url)
Erstellt ein DroidCam Instance durch Angabe der URL.- Parameters:
url
- Die URL zu dem mjpegfeed Stream der DroidCam App. Das Suffix mjpegfeed muss mit angegeben werden.
-
-
Method Detail
-
isOnline
public boolean isOnline()
Pings the IPCamera URL. This effectively sends a GET request and returnstrue
if the response code is in the 200-399 range.- Overrides:
isOnline
in classcom.github.sarxos.webcam.ds.ipcam.IpCamDevice
- Returns:
true
if the given HTTP URL has returned response code 200-399 on a HEAD request within the given TIMEOUT_PING, otherwisefalse
.
-
-