MediaSFU React Native
    Preparing search index...

    Function checkResumeState

    • Checks if the recording can be resumed based on the media type and pause limits.

      Parameters

      • options: CheckResumeStateOptions

        The options for checking resume state.

        • recordingMediaOptions: string
        • recordingVideoPausesLimit: number
        • recordingAudioPausesLimit: number
        • pauseRecordCount: number

      Returns Promise<boolean>

      • A promise that resolves to a boolean indicating whether the recording can be resumed.
      const canResume = await checkResumeState({
      recordingMediaOptions: "video",
      recordingVideoPausesLimit: 3,
      recordingAudioPausesLimit: 5,
      pauseRecordCount: 2,
      });
      console.log(canResume); // true if pauseRecordCount is within limits