// First call loads the module; subsequent calls reuse the same Service instance. constcaps = awaitonvif.device.getServiceCapabilities(); constinfo = awaitonvif.device.getDeviceInformation(); console.log(caps, info.manufacturer);
// Low-level escape hatch when a typed wrapper is missing: constraw = awaitonvif.device.request({ GetHostname: {} }); console.log(raw.getHostnameResponse);
Common base for ONVIF service namespaces (device, media, ptz, ...).
Handles SOAP request / xmlns; subclasses add typed operations.
Example
Typical usage is through a lazy namespace on Onvif (you rarely construct
Serviceyourself):