libCEC Node.js API
    Preparing search index...

    Interface CecAdapterOptions

    Options passed to the CecAdapter constructor. All fields are optional.

    interface CecAdapterOptions {
        deviceName?: string;
        deviceType?: CecDeviceType;
        physicalAddress?: number;
        baseDevice?: CecLogicalAddress;
        hdmiPort?: number;
        activateSource?: boolean;
        monitorOnly?: boolean;
        cecVersion?: CecVersion;
        enableCommandHandler?: boolean;
    }
    Index
    deviceName?: string

    OSD name shown on the bus (only the first 13 characters are used).

    deviceType?: CecDeviceType

    Device type this instance presents as. Defaults to RecordingDevice.

    physicalAddress?: number

    Physical address, e.g. 0x1000; 0 (default) autodetects it.

    baseDevice?: CecLogicalAddress

    Logical address of the device this adapter hangs off.

    hdmiPort?: number

    1-based HDMI port used for physical-address detection.

    activateSource?: boolean

    Become the active source when the connection opens.

    monitorOnly?: boolean

    Passive monitor: claim no logical address, only observe traffic.

    cecVersion?: CecVersion

    CEC version to advertise.

    enableCommandHandler?: boolean

    Also emit the CecAdapterEvents.commandHandler event. Off by default: it routes every command through libCEC's blocking command-handler path and carries the same data as the cheaper command event, and it cannot suppress libCEC's default handling.