MediaSFU React Native
    Preparing search index...

    Function meetingTimeRemaining

    • Handles the remaining time for a meeting and shows an alert if the event type is not 'chat'.

      Parameters

      Returns Promise<void>

      A promise that resolves when the operation is complete.

      const options = {
      timeRemaining: 450000, // 7 minutes and 30 seconds
      showAlert: (alert) => console.log(alert.message),
      eventType: "meeting",
      };

      await meetingTimeRemaining(options);
      // Output:
      // "The event will end in 7:30 minutes."