Skip to content

Commit

Permalink
fix(ui): autonext timing
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Oct 2, 2024
1 parent 7892adc commit fd08c0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/webui/src/client/lib/rundownTiming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ export class RundownTimingCalculator {
const partsSegment = segmentsMap.get(partInstance.segmentId)
const segmentBudget = partsSegment?.segmentTiming?.budgetDuration
const segmentUsesBudget = segmentBudget !== undefined
const lastStartedPlayback = partInstance.timings?.plannedStartedPlayback
// note: lastStartedPlayback that lies in the future means it hasn't started yet (like from autonext)
const lastStartedPlayback =
(partInstance.timings?.plannedStartedPlayback ?? 0) <= now
? partInstance.timings?.plannedStartedPlayback
: undefined

if (partInstance.segmentId !== lastSegmentId) {
this.untimedSegments.add(partInstance.segmentId)
Expand Down

0 comments on commit fd08c0a

Please sign in to comment.