Checks if the recording can be paused based on the current pause count and the allowed pause limits.
const canPause = await checkPauseState({ recordingMediaOptions: "audio", recordingVideoPausesLimit: 3, recordingAudioPausesLimit: 5, pauseRecordCount: 4, showAlert: ({ message, type, duration }) => console.log(message),});console.log(canPause); // true if pauseRecordCount is below the limit, false if limit reached Copy
const canPause = await checkPauseState({ recordingMediaOptions: "audio", recordingVideoPausesLimit: 3, recordingAudioPausesLimit: 5, pauseRecordCount: 4, showAlert: ({ message, type, duration }) => console.log(message),});console.log(canPause); // true if pauseRecordCount is below the limit, false if limit reached
The options for checking the pause state.
true
false
Checks if the recording can be paused based on the current pause count and the allowed pause limits.
Example