shaw's picture
Monorepo working
68f0d00
raw
history blame
787 Bytes
export type MonitorState = {
shortcutsAreBound: boolean
lastTimelineUpdateAtInMs: number
isPlaying: boolean
staticVideoRef?: HTMLVideoElement
}
export type MonitorControls = {
bindShortcuts: () => void
setStaticVideoRef: (staticVideoRef: HTMLVideoElement) => void
checkIfPlaying: () => boolean
/**
* Play/pause the project timeline (video and audio)
*
* @param forcePlaying
* @returns
*/
togglePlayback: (forcePlaying?: boolean) => {
wasPlaying: boolean
isPlaying: boolean
}
/**
* Seek to a specific timestamp
*
* @param timeInMs
* @returns
*/
jumpAt: (timeInMs?: number) => void
setLastTimelineUpdateAtInMs: (lastTimelineUpdateAtInMs: number) => void
}
export type MonitorStore = MonitorState & MonitorControls