hyperdeck-server-connection
v0.2.0
Published
Typescript Node.js library for emulating a Blackmagic Hyperdeck
Downloads
22
Maintainers
Readme
Hyperdeck server connection
Technology highlights
- Typescript
- Yarn
- Jest
- standard-version
- codecov
Installation
For library developers installation steps are as following:
git clone https://github.com/baltedewit/hyperdeck-server-connection
yarn build
If you want to make a contribution, feel free to open a PR.
Usage
const { HyperdeckServer } = require('../dist/server')
const myHyperdeck = new Hyperdeck()
const s = new HyperdeckServer()
s.onPlay = async (cmd) => {
console.log('playing', cmd)
status.status = 'play'
s.notifyTransport({
...status,
speed: '100',
'slot id': '1',
'clip id': '1',
'single clip': 'true',
'video format': '1080i50',
loop: false
})
}
Events
Test
This module will run tests by jest. (TBD)
$ yarn unit
Acknowledgements
- Inspired by CasparCG Hyperdeck from peschuster
- Parser and some constants are derived from hyperdeck-connection
- The public callback-promise API was inspired by mos-connection