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
MalformedURLException
public IpCamDevice(String name, URL url, IpCamMode mode)
public IpCamDevice(String name, String url, IpCamMode mode, IpCamAuth auth) throws MalformedURLException
MalformedURLException
public IpCamDevice(String name, URL url, IpCamMode mode, IpCamAuth auth)
public String getName()
getName
in interface com.github.sarxos.webcam.WebcamDevice
public Dimension[] getResolutions()
getResolutions
in interface com.github.sarxos.webcam.WebcamDevice
public Dimension getResolution()
getResolution
in interface com.github.sarxos.webcam.WebcamDevice
public void setResolution(Dimension size)
setResolution
in interface com.github.sarxos.webcam.WebcamDevice
public BufferedImage getImage()
getImage
in interface com.github.sarxos.webcam.WebcamDevice
public boolean isOnline()
public void open()
open
in interface com.github.sarxos.webcam.WebcamDevice
public void close()
close
in interface com.github.sarxos.webcam.WebcamDevice
public void resetAuth()
public void setFailOnError(boolean failOnError)
public void dispose()
dispose
in interface com.github.sarxos.webcam.WebcamDevice
public boolean isOpen()
isOpen
in interface com.github.sarxos.webcam.WebcamDevice
Copyright © 2012-2014 Bartosz Firyn (SarXos). All Rights Reserved.