public class IpCamDevice extends Object implements com.github.sarxos.webcam.WebcamDevice
| Constructor and Description |
|---|
IpCamDevice(String name,
String url,
IpCamMode mode) |
IpCamDevice(String name,
String url,
IpCamMode mode,
IpCamAuth auth) |
IpCamDevice(String name,
URL url,
IpCamMode mode) |
IpCamDevice(String name,
URL url,
IpCamMode mode,
IpCamAuth auth) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dispose() |
IpCamAuth |
getAuth() |
BufferedImage |
getImage() |
IpCamMode |
getMode() |
String |
getName() |
Dimension |
getResolution() |
Dimension[] |
getResolutions() |
URL |
getURL() |
boolean |
isOnline()
This method will send HTTP HEAD request to the camera URL to check
whether it's online or offline.
|
boolean |
isOpen() |
void |
open() |
void |
resetAuth() |
void |
setAuth(IpCamAuth auth) |
void |
setFailOnError(boolean failOnError) |
void |
setResolution(Dimension size) |
public IpCamDevice(String name, String url, IpCamMode mode) throws MalformedURLException
MalformedURLExceptionpublic IpCamDevice(String name, URL url, IpCamMode mode)
public IpCamDevice(String name, String url, IpCamMode mode, IpCamAuth auth) throws MalformedURLException
MalformedURLExceptionpublic IpCamDevice(String name, URL url, IpCamMode mode, IpCamAuth auth)
public String getName()
getName in interface com.github.sarxos.webcam.WebcamDevicepublic Dimension[] getResolutions()
getResolutions in interface com.github.sarxos.webcam.WebcamDevicepublic Dimension getResolution()
getResolution in interface com.github.sarxos.webcam.WebcamDevicepublic void setResolution(Dimension size)
setResolution in interface com.github.sarxos.webcam.WebcamDevicepublic BufferedImage getImage()
getImage in interface com.github.sarxos.webcam.WebcamDevicepublic boolean isOnline()
public void open()
open in interface com.github.sarxos.webcam.WebcamDevicepublic void close()
close in interface com.github.sarxos.webcam.WebcamDevicepublic void resetAuth()
public void setFailOnError(boolean failOnError)
public void dispose()
dispose in interface com.github.sarxos.webcam.WebcamDevicepublic boolean isOpen()
isOpen in interface com.github.sarxos.webcam.WebcamDeviceCopyright © 2012-2014 Bartosz Firyn (SarXos). All Rights Reserved.