Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mint-dewit/hyperdeck-server-connection

Typescript Node.js library for emulating a Blackmagic Hyperdeck
https://github.com/mint-dewit/hyperdeck-server-connection

Last synced: 3 months ago
JSON representation

Typescript Node.js library for emulating a Blackmagic Hyperdeck

Awesome Lists containing this project

README

        

# Hyperdeck server connection

[![CircleCI](https://circleci.com/gh/baltedewit/hyperdeck-server-connection.svg?style=svg)](https://circleci.com/gh/baltedewit/hyperdeck-server-connection)

## Technology highlights

- Typescript
- Yarn
- Jest
- standard-version
- codecov

## Installation

For library developers installation steps are as following:

```sh
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

```javascript
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)

```sh
$ yarn unit
```

## Acknowledgements

- Inspired by [CasparCG Hyperdeck](https://github.com/peschuster/casparcg-hyperdeck) from [peschuster](https://github.com/peschuster)
- Parser and some constants are derived from [hyperdeck-connection](https://github.com/nrkno/tv-automation-hyperdeck-connection)
- The public callback-promise API was inspired by [mos-connection](https://github.com/nrkno/tv-automation-mos-connection)