A package for controlling and reading a Blackmagic Smart Videohub
npm install bmd-videohub-clientbmd-videohub-client using:
connect(ipAddress: string, port: number): Promise<>
disconnect()
getDeviceInfo()
json
{
"Device present": true,
"Model name": "Blackmagic Smart Videohub",
"Video inputs": 16,
"Video processing units": 0,
"Video outputs": 16,
"Video monitoring outputs": 0,
"Serial ports": 0
}
`
$3
getInputLabels(): Label[]
Returns an array of the labels set for the inputs.
For example:
`json
[
{
"index":0,
"text":"Label for input 1"
},
{
"index":1,
"text":"no label"
},
{
"index":2,
"text":"no label"
}
]
`
$3
getOutputLabels(): Label[]
Returns an array of the labels set for the outputs.
For example:
`json
[
{
"index":0,
"text":"Label for output 1"
},
{
"index":1,
"text":"no label"
},
{
"index":2,
"text":"no label"
}
]
`
$3
changeInputLabel(index: number, text: string)
Sets the text for a input label by index.
$3
changeOutputLabel(index: number, text: string)
$3
getOutputRouting(): Route[]
Returns an array of the current routing, sorted by output. It also shows the lock state of the outputs
For example:
`json
[
{
"output":0,
"input":2,
"locked":"U"
},
{
"output":1,
"input":2,
"locked":"U"
},
{
"output":2,
"input":3,
"locked":"U"
}
]
`
$3
changeOutputRoute(output: number, input: number)
Changes the input for a given output.
$3
lockOutput(output: number)
Locks an output. This means the output can only be changed from the current device.
$3
unlockOutput(output:number)`