Skip to content

Commit

Permalink
fix: use reportedStartedPlayback primarily
Browse files Browse the repository at this point in the history
plannedStartedPlayback as fallback
  • Loading branch information
ianshade committed Oct 30, 2023
1 parent c8a6990 commit 1f1cec2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export function calculateCurrentPartTiming(
}

return {
startTime: currentPartInstance.timings?.plannedStartedPlayback ?? 0,
startTime:
currentPartInstance.timings?.reportedStartedPlayback ??
currentPartInstance.timings?.plannedStartedPlayback ??
0,
expectedDurationMs: currentPartInstance.part.expectedDuration ?? 0,
expectedEndTime: (currentPartInstance.timings?.plannedStartedPlayback ?? 0) + expectedDuration,
}
Expand Down

0 comments on commit 1f1cec2

Please sign in to comment.