Provisioning service
import { Onvif } from 'onvif';const onvif = new Onvif({ hostname: '192.168.1.13', username: 'admin', password: 'admin' });await onvif.connect();const caps = await onvif.provisioning.getServiceCapabilities();const videoSource = caps.source![0].videoSourceToken;console.log(caps.source);await onvif.provisioning.panMove({ videoSource, direction: 'Left', timeout: 'PT1S' });await onvif.provisioning.tiltMove({ videoSource, direction: 'Up', timeout: 'PT1S' });await onvif.provisioning.zoomMove({ videoSource, direction: 'Wide', timeout: 'PT1S' });await onvif.provisioning.stop({ videoSource }); Copy
import { Onvif } from 'onvif';const onvif = new Onvif({ hostname: '192.168.1.13', username: 'admin', password: 'admin' });await onvif.connect();const caps = await onvif.provisioning.getServiceCapabilities();const videoSource = caps.source![0].videoSourceToken;console.log(caps.source);await onvif.provisioning.panMove({ videoSource, direction: 'Left', timeout: 'PT1S' });await onvif.provisioning.tiltMove({ videoSource, direction: 'Up', timeout: 'PT1S' });await onvif.provisioning.zoomMove({ videoSource, direction: 'Wide', timeout: 'PT1S' });await onvif.provisioning.stop({ videoSource });
Protected
Readonly
Moves the focal plane relative to the video source.
Returns the capabilities of the provisioning service.
Returns lifetime usage counters for provisioning movements.
Moves the device on the pan axis.
Optional
Moves the device on the roll axis.
Stops all provisioning movements for a video source.
Moves the device on the tilt axis.
Changes the focal length relative to the video source.
Provisioning service
Example: Move during provisioning (pan / tilt / zoom), then stop: