2.0.1 • Published 2 years ago

mos-connection v2.0.1

Weekly downloads
201
License
MIT
Repository
github
Last release
2 years ago

Sofie: The Modern TV News Studio Automation System (MOS Connection library)

Tests codecov

Library for connecting to a MOS device using the MOS Protocol.

This is a part of the Sofie TV News Studio Automation System.

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) => { // called whenever there is a new connection to a mos-device
	if (device.hasConnection) { // true if we can send messages to the mos-server
	    device.getMachineInfo().then((lm) => {
			console.log('Machineinfo', lm)
		})
	}
	// Setup callbacks to pipe data:
	device.onRequestMachineInfo(() => {})
	device.onCreateRunningOrder((ro) => {})
	device.onDeleteRunningOrder((RunningOrderID: MosString128) => {})
	device.onReadyToAir(() => {})
	// ...
})

Supported MOS profiles

ProfileStatus
Profile 0Implemented
Profile 1Implemented
Profile 2Implemented
Profile 3Implemented
Profile 4Implemented
Profile 5Not implemented (yet)
Profile 6Not implemented (yet)
Profile 7Not implemented (yet)

Pull Requests for the remaining profiles would be happily accepted!

2.0.0-1

2 years ago

2.0.0-0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.5-0

3 years ago

1.0.5-1

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.9.1

3 years ago

0.9.0

4 years ago

0.8.10

4 years ago

0.8.9

4 years ago

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.8

5 years ago

0.6.6

5 years ago

0.6.5

5 years ago

0.6.4

6 years ago

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.17

6 years ago

0.3.16

6 years ago

0.3.15

6 years ago

0.3.14

6 years ago

0.3.12

6 years ago

0.3.11

6 years ago

0.1.0

6 years ago