Axia Lwrp Wrapper Library
npm install --save pixia
const pixia = require("pixia");
pixia.on("source",src=>{
console.log(src);
});
pixia.on("destination",dst=>{
console.log(dst);
});
pixia.addDevice({
name: 'XNode',
host: '172.16.0.5',
port: 93,
pass: ''
});
- devices
{[Device]}, All added devices to manager - sources
{[Source]}, All sources of all devices for easy access
- addDevice(DeviceData), Returns
{Device} - removeDevice(String), Removes Device host
Stringfrom list of devices. Returns{null}
- data
{LwrpData}, parsed LWRP data - destination
{DestinationData}, change in a device destination - error
{ErrorData} - gpi
{GPI}, change in GPI - gpo
{GPO}, change in GPO - meter
{MeterData}, change in meter - running, The LWRP socket is connected and running the command poll
- source
{SourceData}, change in a device source
- destinations
{[Destination]}, collection of device's destinations - gpis
{[Gpi]}, collection of device's GPIs - gpos
{[Gpo]}, collection of device's GPOs - host
{String}, IP of device - lwrp
{Lwrp}, socket connected to the device - name
{String}, device's friendly name - pass
{String}, pass used for login - port
{String|Number}, LWRP port. Defaults to93 - sources
{[Source]}, collection of device's sources
- getDestinations(), Calls
DSTfrom LWRP. Returns{null} - getGpis(), Calls
ADD GPIfrom LWRP. Returns{null} - getGpos(), Calls
ADD GPOfrom LWRP. Returns{null} - getMeters(), Adds
MTRto LWRP poll. Returns{null} - getSources(), Calls
SRCfrom LWRP. Returns{null} - getVersion(), Calls
VERfrom LWRP. Returns{null} - hasCommand(CommandString), Check if
CommandStringis in LWRP poll. Returns{Boolean} - login(String), Logs into LWRP with
Stringas password. Default isthis.pass. Returns{null} - stop(), stop device LWRP
- write(String), Writes
Stringto LWRP. Returns{Boolean}
- data
{LwrpData}, parsed LWRP data. - destination
{Destination}, change in destination - error
{ErrorData} - gpi
{GPI}, change in GPI - gpo
{GPO}, change in GPO - meter
{MeterData}, change in meter - running, The LWRP socket is connected and running the command poll
- source
{Source}, change in source
- address
{String}, IP/RTPA - channel
{String} - chCount
{Number}, number of audio channels - device
{Device}, parent device - name
{String}, friendly name - raw
{LwrpData} - streamType
{String},DSTorSRC - subscribers
{[Destination]}, destinations listening to this source
- addSub(Destination)
- removeSub(Destination)
- update(LwrpData)
- change, on source update
- address
{String}, IP/RTPA - channel
{String} - chCount
{Number}, number of audio channels - device
{Device}, parent device - name
{String}, friendly name - raw
{LwrpData} - streamType
{String},DSTorSRC - source
{Source}
- setAddress(rtpa)
- change, on destination update