2.1.17 • Published 6 years ago
pixia v2.1.17
Pixia
Axia Lwrp Wrapper Library
Installation
npm install --save pixia
Usage
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: ''
});Structures
Manager
Properties
- devices
{[Device]}, All added devices to manager - sources
{[Source]}, All sources of all devices for easy access
Methods
- addDevice(DeviceData), Returns
{Device} - removeDevice(String), Removes Device host
Stringfrom list of devices. Returns{null}
Events
- 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
Device
Properties
- 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
Method
- 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}
Events
- 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
Source
Properties
- 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
Methods
- addSub(Destination)
- removeSub(Destination)
- update(LwrpData)
Events
- change, on source update
Destination
Properties
- 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}
Methods
- setAddress(rtpa)
Events
- change, on destination update
2.1.17
6 years ago
2.1.16
6 years ago
2.1.14
6 years ago
2.1.15
6 years ago
2.1.12
6 years ago
2.1.13
6 years ago
2.1.11
6 years ago
2.1.10
6 years ago
2.1.9
6 years ago
2.1.8
6 years ago
2.1.7
6 years ago
2.1.6
6 years ago
2.1.5
6 years ago
2.1.4
6 years ago
2.1.2
6 years ago
2.1.3
6 years ago
2.1.1
6 years ago
2.0.35
6 years ago
2.0.34
6 years ago
2.0.33
6 years ago
2.0.32
6 years ago
2.0.31
6 years ago
2.0.30
6 years ago
2.0.28
6 years ago
2.0.27
6 years ago
2.0.26
6 years ago
2.0.25
6 years ago
2.0.24
6 years ago
2.0.22
6 years ago
2.0.23
6 years ago
2.0.21
6 years ago
2.0.20
6 years ago
2.0.19
6 years ago
2.0.18
6 years ago
2.0.16
6 years ago
2.0.15
6 years ago
2.0.14
6 years ago
2.0.13
6 years ago
2.0.9
6 years ago
2.0.6
6 years ago
2.0.5
6 years ago
2.0.4
6 years ago
2.0.3
6 years ago
2.0.2
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago