MediaSFU React Native
    Preparing search index...

    Variable checkPauseStateConst

    checkPauseState: CheckPauseStateType

    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.

    • Resolves to true if the recording can be paused, otherwise false.
    const canPause = await checkPauseState({
    recordingMediaOptions: 'audio',
    recordingVideoPausesLimit: 3,
    recordingAudioPausesLimit: 5,
    pauseRecordCount: 4,
    showAlert: ({ message }) => console.log(message),
    })