File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
blueprints-integration/src/context
job-worker/src/blueprints/context Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,15 @@ import type { IShowStyleContext } from './showStyleContext.js'
55import type { IExecuteTSRActionsContext } from './executeTsrActionContext.js'
66import type { IDataStoreMethods } from './adlibActionContext.js'
77import { ITTimersContext } from './tTimersContext.js'
8+ import type { Time } from '../common.js'
89
910export interface IRundownContext extends IShowStyleContext {
1011 readonly rundownId : string
1112 readonly playlistId : string
1213 readonly rundown : Readonly < IBlueprintSegmentRundown >
14+
15+ /** Actual time of playback starting for the playlist (undefined if not started) */
16+ readonly startedPlayback ?: Time
1317}
1418
1519export interface IRundownUserContext extends IUserNotesContext , IRundownContext { }
Original file line number Diff line number Diff line change 44 IRundownActivationContext ,
55 IRundownActivationContextState ,
66 TSR ,
7+ Time ,
78} from '@sofie-automation/blueprints-integration'
89import { PeripheralDeviceId } from '@sofie-automation/shared-lib/dist/core/model/Ids'
910import { ReadonlyDeep } from 'type-fest'
@@ -58,6 +59,10 @@ export class RundownActivationContext extends RundownEventContext implements IRu
5859 return this . _currentState
5960 }
6061
62+ get startedPlayback ( ) : Time | undefined {
63+ return this . _playoutModel . playlist . startedPlayback
64+ }
65+
6166 async listPlayoutDevices ( ) : Promise < IBlueprintPlayoutDevice [ ] > {
6267 return listPlayoutDevices ( this . _context , this . _playoutModel )
6368 }
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
1717 IBlueprintPartInstance ,
1818 SomeContent ,
1919 WithTimeline ,
20+ Time ,
2021} from '@sofie-automation/blueprints-integration'
2122import { postProcessPieces , postProcessTimelineObjects } from '../postProcess.js'
2223import {
@@ -61,6 +62,10 @@ export class SyncIngestUpdateToPartInstanceContext
6162 return Array . from ( this . #changedTTimers. values ( ) )
6263 }
6364
65+ public get startedPlayback ( ) : Time | undefined {
66+ return this . #playoutModel. playlist . startedPlayback
67+ }
68+
6469 constructor (
6570 context : JobContext ,
6671 playoutModel : PlayoutModel ,
You can’t perform that action at this time.
0 commit comments