public class HttpCamera extends VideoCamera
Modifier and Type | Class and Description |
---|---|
static class |
HttpCamera.HttpCameraKind |
VideoCamera.WhiteBalance
VideoSource.Kind
m_handle
Constructor and Description |
---|
HttpCamera(String name,
String url)
Create a source for a MJPEG-over-HTTP (IP) camera.
|
HttpCamera(String name,
String[] urls)
Create a source for a MJPEG-over-HTTP (IP) camera.
|
HttpCamera(String name,
String[] urls,
HttpCamera.HttpCameraKind kind)
Create a source for a MJPEG-over-HTTP (IP) camera.
|
HttpCamera(String name,
String url,
HttpCamera.HttpCameraKind kind)
Create a source for a MJPEG-over-HTTP (IP) camera.
|
Modifier and Type | Method and Description |
---|---|
HttpCamera.HttpCameraKind |
getHttpCameraKind()
Get the kind of HTTP camera.
|
static HttpCamera.HttpCameraKind |
getHttpCameraKindFromInt(int kind)
Convert from the numerical representation of kind to an enum type.
|
String[] |
getUrls()
Get the URLs used to connect to the camera.
|
void |
setUrls(String[] urls)
Change the URLs used to connect to the camera.
|
getBrightness, setBrightness, setExposureAuto, setExposureHoldCurrent, setExposureManual, setWhiteBalanceAuto, setWhiteBalanceHoldCurrent, setWhiteBalanceManual
close, enumerateProperties, enumerateSinks, enumerateSources, enumerateVideoModes, equals, free, getActualDataRate, getActualFPS, getDescription, getHandle, getKind, getKindFromInt, getLastFrameTime, getName, getProperty, getVideoMode, hashCode, isConnected, isValid, setFPS, setPixelFormat, setResolution, setVideoMode, setVideoMode
public HttpCamera(String name, String url)
name
- Source name (arbitrary unique identifier)url
- Camera URL (e.g. "http://10.x.y.11/video/stream.mjpg")public HttpCamera(String name, String url, HttpCamera.HttpCameraKind kind)
name
- Source name (arbitrary unique identifier)url
- Camera URL (e.g. "http://10.x.y.11/video/stream.mjpg")kind
- Camera kind (e.g. kAxis)public HttpCamera(String name, String[] urls)
name
- Source name (arbitrary unique identifier)urls
- Array of Camera URLspublic HttpCamera(String name, String[] urls, HttpCamera.HttpCameraKind kind)
name
- Source name (arbitrary unique identifier)urls
- Array of Camera URLskind
- Camera kind (e.g. kAxis)public static HttpCamera.HttpCameraKind getHttpCameraKindFromInt(int kind)
kind
- The numerical representation of kindpublic HttpCamera.HttpCameraKind getHttpCameraKind()
Autodetection can result in returning a different value than the camera was created with.
public void setUrls(String[] urls)
public String[] getUrls()