Const
Checks if the recording can be paused based on the current pause count and the allowed pause limits.
The options for checking the pause state.
The type of media being recorded ("video" or "audio").
The maximum number of pauses allowed for video recordings.
The maximum number of pauses allowed for audio recordings.
The current count of pauses that have been made.
Function to show an alert message if the pause limit is reached.
true
false
const canPause = await checkPauseState({ recordingMediaOptions: 'audio', recordingVideoPausesLimit: 3, recordingAudioPausesLimit: 5, pauseRecordCount: 4, showAlert: ({ message }) => console.log(message),}) Copy
const canPause = await checkPauseState({ recordingMediaOptions: 'audio', recordingVideoPausesLimit: 3, recordingAudioPausesLimit: 5, pauseRecordCount: 4, showAlert: ({ message }) => console.log(message),})
Checks if the recording can be paused based on the current pause count and the allowed pause limits.