This package provides an interface between BlackMagic ATEM switchers and NodeRed
npm install atem-connection-noderedjavascript
{
{
topic: "previewInput", //The function to call
payload: {
// The payload to send (see the function for information on this)
}
}
}
`Direct action
Will call a method directly implemented by ATEM Connection. Be careful using as this can be problematic, but it is very powerful if used correctly!
`javascript
//Example setting upstream keyer 1 on me 0 on air
//https://nrkno.github.io/sofie-atem-connection/classes/Atem.html#setUpstreamKeyerOnAir
{
{
topic: "directAction",
payload: {
function: "setUpstreamKeyerOnAir",
parameters: [true, 0, 1]
}
}
}
`Output messages
Below is a list of messages that can be sent out by the node:Connection State
`javascript
{
{
topic: "connection",
payload: "connected/disconnected"
}
}
`Info / Error / Debug / Command
`javascript
{
{
topic: "info/error/debug/command",
payload: "" //The message
}
}
`State Changed
`javascript
{
{
topic: "stateChanged",
payload: {
state: {} //The state object
pathToChange: "" //The path
}
}
}
`Responses
`javascript
{
{
topic: "response",
success: true/false,
state: {
//The ATEM state
},
payload: {
//The response
}
}
}
`Function Changed Example
This message is what is output when a function is supported by this project and has been translated. See the specific supported functions below.
`javascript
{
topic: "function",
payload: {
function: "previewInput",
data: {
ME: {
//The ME
}
input: {
//The input that was selected
}
},
state: {
// The state object
},
pathToChange: "video.mixEffects.1.previewInput" // Where the change came from specifically
}
}
`
Thanks
ATEM Connection project by Norsk rikskringkasting (NRK) which provides the connection to the ATEM.Aims!
Here is a list of things i want to add:
`
autoDownstreamKey
setDownstreamKeyCutSource
setDownstreamKeyFillSource
setDownstreamKeyOnAirautoTransition
cut
fadeToBlack
setTransitionPosition
setTransitionStyle
macroRun ✅
macroContinue ✅
macroStop ✅
changePreviewInput ✅
changeProgramInput ✅
setAuxSource
setUpstreamKeyerCutSource
setUpstreamKeyerFillSource
setUpstreamKeyerOnAir
startRecording
startStreaming
stopRecording
stopStreaming
``