From d4378e1ee99462c5abbdb84c999647d6420365bb Mon Sep 17 00:00:00 2001 From: Mint de Wit Date: Tue, 17 Dec 2024 14:40:51 +0100 Subject: [PATCH] feat(atem): add stinger support --- .../src/integrations/atem.ts | 15 +++++++++++++++ .../__snapshots__/diffStates.spec.ts.snap | 2 +- .../src/integrations/atem/diffState.ts | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/timeline-state-resolver-types/src/integrations/atem.ts b/packages/timeline-state-resolver-types/src/integrations/atem.ts index 080c3058b..17673d3e0 100644 --- a/packages/timeline-state-resolver-types/src/integrations/atem.ts +++ b/packages/timeline-state-resolver-types/src/integrations/atem.ts @@ -82,6 +82,21 @@ export interface AtemTransitionSettings { input: number } // stinger + stinger?: { + /** index of the mediaplayer (0-3) - note: putting this at a number that the mixer doesn't support may crash the connection */ + source: number + preMultipliedKey?: boolean + + clip?: number + /** 0 - 1000 */ + gain?: number + invert?: boolean + + preroll?: number + clipDuration?: number + triggerPoint?: number + mixRate?: number + } wipe?: { /** 1 - 250 frames */ rate?: number diff --git a/packages/timeline-state-resolver/src/integrations/atem/__tests__/__snapshots__/diffStates.spec.ts.snap b/packages/timeline-state-resolver/src/integrations/atem/__tests__/__snapshots__/diffStates.spec.ts.snap index b092d8dc4..5cb541b07 100644 --- a/packages/timeline-state-resolver/src/integrations/atem/__tests__/__snapshots__/diffStates.spec.ts.snap +++ b/packages/timeline-state-resolver/src/integrations/atem/__tests__/__snapshots__/diffStates.spec.ts.snap @@ -47,7 +47,7 @@ exports[`Diff States Simple diff against empty state 1`] = ` "DVE": false, "dip": false, "mix": true, - "stinger": false, + "stinger": true, "wipe": true, }, "transitionStatus": true, diff --git a/packages/timeline-state-resolver/src/integrations/atem/diffState.ts b/packages/timeline-state-resolver/src/integrations/atem/diffState.ts index 0c14cf309..871b1144a 100644 --- a/packages/timeline-state-resolver/src/integrations/atem/diffState.ts +++ b/packages/timeline-state-resolver/src/integrations/atem/diffState.ts @@ -63,7 +63,7 @@ export function createDiffOptions(mappings: Mappings): DeepComp dip: false, DVE: false, mix: true, - stinger: false, + stinger: true, wipe: true, }, upstreamKeyers: {