Function checkPauseState

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