Files
jitsi-meet/react/features/subtitles/functions.any.ts
Calinteodor 5247fbdc0f feat(ios/android/sdk): delegate transcription chunk received event (#14516)
* feat(subtitles): created separate helpers for delegating transcription chunks events 
on web and mobile
2024-03-28 14:10:02 +02:00

13 lines
436 B
TypeScript

import { IReduxState } from '../app/types';
import { canAddTranscriber, isTranscribing } from '../transcribing/functions';
/**
* Checks whether the participant can start the subtitles.
*
* @param {IReduxState} state - The redux state.
* @returns {boolean} - True if the participant can start the subtitles.
*/
export function canStartSubtitles(state: IReduxState) {
return canAddTranscriber(state) || isTranscribing(state);
}