From 1fecaa38787ff2251d2e7e371a9d3f55f9ddef61 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Sun, 30 May 2021 14:13:42 +0100 Subject: [PATCH] fix: expose startup state commands --- src/atem.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/atem.ts b/src/atem.ts index 36494908b..d8023dace 100644 --- a/src/atem.ts +++ b/src/atem.ts @@ -922,6 +922,15 @@ export class Atem extends BasicAtem { return this.sendCommand(command) } + public saveStartupState(): Promise { + const command = new Commands.StartupStateSaveCommand() + return this.sendCommand(command) + } + public clearStartupState(): Promise { + const command = new Commands.StartupStateClearCommand() + return this.sendCommand(command) + } + public listVisibleInputs(mode: 'program' | 'preview', me = 0): number[] { if (this.state) { return listVisibleInputs(mode, this.state, me)