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); Copy
const checkResumeStateService = new CheckResumeState();const canResume = await checkResumeStateService.checkResumeState({ recordingMediaOptions: 'audio', recordingVideoPausesLimit: 3, recordingAudioPausesLimit: 5, pauseRecordCount: 2,});console.log('Can resume recording:', canResume);
Checks if the recording can be resumed based on the media type and pause limits.
Param: options
The options for checking resume state.
Param: options.recordingMediaOptions
The type of media being recorded ("video" or "audio").
Param: options.recordingVideoPausesLimit
The maximum number of pauses allowed for video recording.
Param: options.recordingAudioPausesLimit
The maximum number of pauses allowed for audio recording.
Param: options.pauseRecordCount
The current number of pauses that have occurred.
Returns
A promise that resolves to a boolean indicating whether the recording can be resumed.
Example