Nervous Penpal Message

    kiloview-ndi
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.5 • Public • Published

    API package for Kiloview N40 NDI Encoder/decoder

    Installation

    npm install kiloview-ndi # OR yarn add kiloview-ndi

    Easily control the converters over their simple API. Remember to add a user to the device, and give it HTTP API access.

    Example

    Usage example:

    const kiloviewNDI = require('kiloview-ndi');
    const converter = new kiloviewNDI('10.0.0.10', 'admin', 'admin');
    
    // Toggle between encoder/decoder
    async function toggle() {
    	let mode = await converter.modeGet();
    
    	if (mode.mode === 'decoder') {
    		await converter.modeSwitch('encoder');
    	} else {
    		await converter.modeSwitch('decoder');
    	}
    }
    
    toggle();

    API methods currently implemented

    • modeGet()
    • modeSwitch(mode)
    • modeStatus()
    • decoderDiscoveryGet()
    • decoderCurrentStatus()
    • decoderCurrentSetPreset(id)
    • decoderCurrentSetUrl(name, url)
    • decoderPresetSetBlank(color)
    • encoderNdiStatus()
    • encoderNdiGetConfig()
    • encoderNdiSetConfig(config)
    • sysServerInfo()
    • sysReconnect()
    • sysReboot()
    • sysRestore()

    Keywords

    none

    Install

    npm i kiloview-ndi

    DownloadsWeekly Downloads

    176

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    7.75 kB

    Total Files

    5

    Last publish

    Collaborators

    • julusian
    • willosof
    • haakon