onvif-nvt-ts
Version:
Wrapper for ONVIF spec to control NVT (Network Video Transitter) devices. Forked and added TypeScript support from onvif-nvt.
21 lines (20 loc) • 928 B
TypeScript
import Camera from './camera';
/**
* 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.
*/
declare class OnvifManager {
cameras: Record<string, Camera>;
/**
* Connects to an ONVIF device.
* @param address The address of the ONVIF device (ie: 10.10.1.20)
* @param port The port of the ONVIF device. Defaults to 80.
* @param username The user name used to make a connection.
* @param password The password used to make a connection.
* @param servicePath The service path for the camera. If null or 'undefined' the default path according to the ONVIF spec will be used.
*/
connect(address: string, port?: number, username?: string, password?: string, servicePath?: string): Promise<Camera>;
}
declare const _default: OnvifManager;
export default _default;