MOS-Connection

Library for connecting to a Mos-device
Based on http://mosprotocol.com
Docs: https://nrkno.github.io/tv-automation-mos-connection/
Note: This library is currently under heavy develpoment, expect breaking changes.
Getting started
import { MosConnection } from 'mos-connection'
let mos = new MosConnection(new ConnectionConfig({
mosID: 'my.mos.application',
acceptsConnections: true,
profiles: {
'0': true,
'1': true,
'2': true,
'4': true
},
openRelay: true
debug: false
}))
mos.onConnection((device: MosDevice) => {
if (device.hasConnection) {
device.getMachineInfo().then((lm) => {
console.log('Machineinfo', lm)
})
}
device.onGetMachineInfo(() => {})
device.onCreateRunningOrder((ro) => {})
device.onDeleteRunningOrder((RunningOrderID: MosString128) => {})
device.onReadyToAir(() => {})
})
Development status:
Basic connections
Working in dev environment
Profile 0
Profile 1
Profile 2
Profile 3
Profile 4
Profile 5
Profile 6
Profile 7