mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 01:13:55 +00:00
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
import { Playback } from 'ontime-types';
|
|
|
|
/**
|
|
* Utility checks whether the playback is considered to be active
|
|
* @param state
|
|
* @returns
|
|
*/
|
|
export function isPlaybackActive(state: Playback): boolean {
|
|
return state === Playback.Play || state === Playback.Pause || state === Playback.Roll;
|
|
}
|