From 3d61556ea44cc90cc88095875e16f06e76eafd49 Mon Sep 17 00:00:00 2001 From: Rasmus Lindved Date: Tue, 1 Oct 2024 10:45:16 +0200 Subject: [PATCH] SOF-2289 AudioBed also listen for a timelineObject with the AudioBedStop class for it to stop. --- src/tv2-common/cues/lyd.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tv2-common/cues/lyd.ts b/src/tv2-common/cues/lyd.ts index 22126097..a07fae4a 100644 --- a/src/tv2-common/cues/lyd.ts +++ b/src/tv2-common/cues/lyd.ts @@ -30,6 +30,8 @@ import { Tv2OutputLayer } from '../../tv2-constants/tv2-output-layer' import { Tv2PieceType } from '../../tv2-constants/tv2-piece-type' import { TV2ShowStyleConfig } from '../blueprintConfig' +const STOP_AUDIO_BED_CLASS: string = 'STOP_AUDIO_BED_CLASS' + export function EvaluateLYD( context: ShowStyleContext, pieces: IBlueprintPiece[], @@ -133,7 +135,7 @@ function LydContent( deviceType: TSR.DeviceType.ABSTRACT, type: 'empty' }, - classes: [] + classes: [STOP_AUDIO_BED_CLASS] }) ] }) @@ -180,7 +182,8 @@ function LydContent( literal({ id: '', enable: { - start: 0 + start: 0, + end: `.${STOP_AUDIO_BED_CLASS}` }, priority: 1, layer: SharedSisyfosLLayer.SisyfosSourceAudiobed,