The options for checking the pause state.
Optional
showAlert?: ShowAlerttrue
if the recording can be paused, otherwise false
.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
Checks if the recording can be paused based on the current pause count and the allowed pause limits.