new AtemPacket(msg)
Parse an ATEM UDP message
Parameters:
| Name | Type | Description |
|---|---|---|
msg |
Buffer | The message to parse |
Extends
Members
-
body
-
- Inherited From:
- Source:
Properties:
Name Type Description commandsArray.<Command> An array containing all the commands in the Packet lengthNumber The serialized body's length serializemethod Convert the body to a buffer -
header
-
Represents the first 12 bytes of the serial packet
- Inherited From:
- Source:
Properties:
Name Type Description flagsNumber See flags uidNumber See Device ~ uid lsNumber Local sequence number fsNumber Foreign sequence number packetLengthNumber The length of the serial packet serialize()method Converts the header into a buffer
Methods
-
acknowledge()
-
Send an acknowledgement for this packet to the ATEM
-
removePendingPackets()
-
Marks the corresponding (sync) UserPacket from the the pendingPackets list as read.
Note that packets, transmitted before the corresponding packet (thus having a local sequence number wich is less than the corresponding packet's one), will be removed too.