Skip to content

Commit

Permalink
fix: expose multiviewer properties command
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed May 30, 2021
1 parent 1fecaa3 commit 16c3cdd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/atem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
FairlightAudioExpanderState,
} from './state/fairlight'
import { FairlightDynamicsResetProps } from './commands/Fairlight/common'
import { MultiViewerPropertiesState } from './state/settings'

export interface AtemOptions {
address?: string
Expand Down Expand Up @@ -441,6 +442,11 @@ export class Atem extends BasicAtem {
const command = new Commands.MultiViewerVuOpacityCommand(mv, opacity)
return this.sendCommand(command)
}
public setMultiViewerProperties(props: Partial<MultiViewerPropertiesState>, mv = 0): Promise<void> {
const command = new Commands.MultiViewerPropertiesCommand(mv)
command.updateProps(props)
return this.sendCommand(command)
}

public setColorGeneratorColour(newProps: Partial<ColorGeneratorState>, index = 0): Promise<void> {
const command = new Commands.ColorGeneratorCommand(index)
Expand Down Expand Up @@ -640,7 +646,7 @@ export class Atem extends BasicAtem {
mixEffect: number,
upstreamKeyerId: number,
keyframe: number,
properties: Omit<USK.UpstreamKeyerFlyKeyframe, 'keyFrameId'>
properties: Partial<Omit<USK.UpstreamKeyerFlyKeyframe, 'keyFrameId'>>
): Promise<void> {
const command = new Commands.MixEffectKeyFlyKeyframeCommand(mixEffect, upstreamKeyerId, keyframe)
command.updateProps(properties)
Expand Down

0 comments on commit 16c3cdd

Please sign in to comment.