PTZ_Manager

public class PTZ_Manager

Constructors

PTZ_Manager

public PTZ_Manager(Context ctx, String uri, String username, String password)

Handles ptz commands of a remote Axis webcam. (tested on Axis 214 PTZ model)

Parameters:
  • ctx – The activity context
  • uri – The ptz uri of the webcam
  • username – the username used for ptz authentication
  • password – the username used for ptz authentication

Methods

getPassword

public String getPassword()

Get the password used for the authentication

Returns:the password

getUri

public String getUri()

Get the uri connection string

Returns:the uri used for connecting to the webcam

getUsername

public String getUsername()

Get the username used for the authentication

Returns:the username

goTo

public void goTo(String preset)

Move the webcam to the position (and/or zoom value) specified by the preset passed as argument

Parameters:
  • preset – the preset name

startMove

public void startMove(PTZ_Direction direction)

Start moving the webcam to the specified direction

Parameters:

startMove

public void startMove(PTZ_Direction direction, int speed)

Start moving the webcam to the specified direction and speed

Parameters:
  • direction – the moving direction
  • speed – the speed

startZoom

public void startZoom(PTZ_Zoom zoomDirection)

Start zooming to the specified direction

Parameters:
  • zoomDirection – the zoom direction

startZoom

public void startZoom(PTZ_Zoom zoomDirection, int speed)

Start zooming to the specified direction and speed

Parameters:
  • zoomDirection – the zoom directiom
  • speed – the zoom speed

stopMove

public void stopMove()

Stop the pan and/or tilt movement of the webcam

stopZoom

public void stopZoom()

Stop the zoom

zoom

public void zoom(int value)

Zoom the webcam to the specified value (positive values are for zoom-in, negative values for zoom-out)

Parameters:
  • value