add search for sending udp direct to IPs for ATEM

This commit is contained in:
2023-02-07 12:54:10 -06:00
parent bd6757c99f
commit be3899a8f6
2 changed files with 42 additions and 7 deletions
+9 -7
View File
@@ -3,15 +3,17 @@ exports.config = {
connectionType: 'atem',
defaultPort: 9910,
mayChangePort: false,
// heartbeatInterval: 5000,
// heartbeatTimeout: 20000,
searchOptions: {
// TODO: actually populate search options
type: 'UDPsocket',
searchBuffer: Buffer.from('', 'ascii'),
testPort: 9910,
type: 'UDPScan',
searchBuffer: Buffer.from([
0x10, 0x14, 0x53, 0xab, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00,
]),
listenPort: 0,
devicePort: 9910,
validateResponse(msg, info) {
return true;
// This is a tad bit hacky but works from what I can see.
return Buffer.compare(msg.slice(0, 4), Buffer.from([16, 20, 83, 171])) === 0;
},
},
};