Class: Command

Command

An ATEM command

new Command(name, dataopt)

Creates a new ATEM command
Parameters:
Name Type Attributes Description
name String An ATEM command (e.g. 'TlSr') consisting of 4 characters.
data Buffer <optional>
A buffer containing command data.
Source:

Members

data :Buffer

The command data.
Type:
  • Buffer
Source:

length :Number

The number of bytes this command will take when serialized.
Type:
  • Number
Source:

name :String

The name of the command.
Type:
  • String
Source:

Methods

serialize() → {Buffer}

Converts the command to a byte array
Source:
Returns:
A Buffer containing the command name and data.
Type
Buffer