Class CheckResumeState

Checks if the recording can be resumed based on the media type and pause limits.

The options for checking resume state.

The type of media being recorded ("video" or "audio").

The maximum number of pauses allowed for video recording.

The maximum number of pauses allowed for audio recording.

The current number of pauses that have occurred.

A promise that resolves to a boolean indicating whether the recording can be resumed.

const checkResumeStateService = new CheckResumeState();
const canResume = await checkResumeStateService.checkResumeState({
recordingMediaOptions: 'audio',
recordingVideoPausesLimit: 3,
recordingAudioPausesLimit: 5,
pauseRecordCount: 2,
});
console.log('Can resume recording:', canResume);

Constructors

Methods

Constructors

Methods