mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 13:23:35 +00:00
extract isPlaybackActive to a global util function (#1393)
This commit is contained in:
committed by
GitHub
parent
df1cf7a96b
commit
cfcf6a5684
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user