Class: OnvifManager

OnvifManager()

If the OnvifManager class is used to connect to a camera, it will manage your devices (cameras). It stores cameras by address. You can use address to retrieve the camera.

Constructor

new OnvifManager()

Source:

Methods

add(name)

Add a module to OnvifManager. Currently, the only available module is 'discovery'.
Parameters:
Name Type Description
name string The name of the module.
Source:

connect(address, portopt, usernameopt, passwordopt, servicePathopt, callbackopt)

Connects to an ONVIF device.
Parameters:
Name Type Attributes Description
address string The address of the ONVIF device (ie: 10.10.1.20)
port integer <optional>
The port of the ONVIF device. Defaults to 80.
username string <optional>
The user name used to make a connection.
password string <optional>
The password used to make a connection.
servicePath string <optional>
The service path for the camera. If null or 'undefined' the default path according to the ONVIF spec will be used.
callback callback <optional>
Optional callback, instead of a Promise.
Source:
Returns:
A Promise. On success, resolve contains a Camera object.