Skip to content

Commit

Permalink
Automerge 'staging' to 'develop'.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions # Blueprint-Automation authored and GitHub Actions # Blueprint-Automation committed Jun 17, 2024
2 parents 13ee2d8 + 1d15e14 commit 1ccd9fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/tv2-common/helpers/graphics/pilot/PilotGraphicGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
GraphicPilot,
HtmlPilotGraphicGenerator,
IsTargetingFull,
IsTargetingOVL,
IsTargetingWall,
PieceMetaData,
ShowStyleContext,
Expand Down Expand Up @@ -192,9 +193,15 @@ export abstract class PilotGraphicGenerator extends Graphic {
}

protected getPrerollDuration(): number {
return this.config.studio.GraphicsType === 'HTML'
? this.config.studio.CasparPrerollDuration
: this.config.studio.VizPilotGraphics.PrerollDuration
if (this.config.studio.GraphicsType === 'HTML') {
return this.config.studio.CasparPrerollDuration
}

if (IsTargetingOVL(this.engine)) {
return 0
}

return this.config.studio.VizPilotGraphics.PrerollDuration
}

protected getTv2PieceType(): Tv2PieceType {
Expand Down
2 changes: 1 addition & 1 deletion src/tv2_afvd_studio/__tests__/graphics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('Graphics', () => {
expect(piece.sourceLayerId).toBe(SourceLayer.PgmPilotOverlay)
expect(piece.outputLayerId).toBe(SharedOutputLayer.OVERLAY)
expect(piece.enable).toEqual({ start: 2000 })
expect(piece.prerollDuration).toBe(context.config.studio.VizPilotGraphics.PrerollDuration)
expect(piece.prerollDuration).toBe(0)
expect(piece.lifespan).toBe(PieceLifespan.OutOnRundownChange)
const content = piece.content!
const timeline = content.timelineObjects as TSR.TSRTimelineObj[]
Expand Down

0 comments on commit 1ccd9fa

Please sign in to comment.