inti relative mode

This commit is contained in:
arc-alex
2025-02-25 22:25:38 +01:00
parent 0a6542df76
commit 140a3310cb
21 changed files with 248 additions and 21 deletions
@@ -4,6 +4,7 @@ import {
isPlayableEvent,
LogOrigin,
MaybeNumber,
OffsetMode,
OntimeEvent,
Playback,
TimerLifeCycle,
@@ -37,6 +38,7 @@ import {
import { getForceUpdate, getShouldClockUpdate, getShouldTimerUpdate } from './rundownService.utils.js';
import { skippedOutOfEvent } from '../timerUtils.js';
import { triggerAutomations } from '../../api-data/automation/automation.service.js';
import { getDataProvider } from '../../classes/data-provider/DataProvider.js';
type RuntimeStateEventKeys = keyof Pick<RuntimeState, 'eventNext' | 'eventNow' | 'publicEventNow' | 'publicEventNext'>;
@@ -68,6 +70,14 @@ class RuntimeService {
RuntimeService.previousState = {} as RuntimeState;
}
@broadcastResult
setOffsetMode(mode: OffsetMode) {
runtimeState.setOffsetMode(mode);
process.nextTick(() => {
getDataProvider().setOffsetMode(mode);
});
}
/**
* Checks result of an update and notifies integrations as needed
* This is the only exception of a private method that has broadcast result