MediaSFU React Native
    Preparing search index...

    Function stoppedRecording

    • Displays an alert message when the recording has stopped, indicating the reason.

      Parameters

      Returns Promise<void>

      A promise that resolves once the alert is shown, if applicable.

      const options = {
      state: "stop",
      reason: "The session ended.",
      showAlert: (alert) => console.log(alert.message),
      };

      stoppedRecording(options);
      // Output: "The recording has stopped - The session ended."