public abstract class WebCameraConnector extends Object
Created by ken.yu on 16-12-2.
Modifier and Type | Field and Description |
---|---|
protected LoginParam |
loginParam
|
Constructor and Description |
---|
WebCameraConnector(InetAddress ip,
int port,
String username,
String password)
Create a web camera connector.
|
WebCameraConnector(LoginParam loginParam)
Create a web camera connector.
|
Modifier and Type | Method and Description |
---|---|
abstract InputStream |
getStream()
Get the real-time video raw-bit stream from the camera.
|
protected LoginParam loginParam
public WebCameraConnector(InetAddress ip, int port, String username, String password)
ip
- WEBCAM_LOGIN_PARAM of the web camera.port
- Port opened of the web camera.username
- Username for login.password
- Password for login.public WebCameraConnector(LoginParam loginParam)
loginParam
- Parameters for login.public abstract InputStream getStream() throws IOException
IOException