onvif
    Preparing search index...

    Interface Service

    Common base for ONVIF service namespaces (device, media, ptz, ...).

    Handles SOAP request / xmlns; subclasses add typed operations.

    Typical usage is through a lazy namespace on Onvif (you rarely construct Service yourself):

    import { Onvif } from 'onvif';

    const onvif = new Onvif({ hostname: '192.168.1.13', username: 'admin', password: 'admin' });
    await onvif.connect();

    // First call loads the module; subsequent calls reuse the same Service instance.
    const caps = await onvif.device.getServiceCapabilities();
    const info = await onvif.device.getDeviceInformation();
    console.log(caps, info.manufacturer);

    // Low-level escape hatch when a typed wrapper is missing:
    const raw = await onvif.device.request({ GetHostname: {} });
    console.log(raw.getHostnameResponse);
    interface Service {
        onvif: Onvif;
        service: keyof OnvifServices;
        xmlns: string;
        request<T = any>(
            body: OnvifSoapBody,
            options?: LineraseOptions,
        ): Promise<T>;
    }

    Hierarchy (View Summary)

    Index
    onvif: Onvif
    service: keyof OnvifServices
    xmlns: string