Hiyve Components - v1.0.0
    Preparing search index...

    Function WaitForHostScreen

    • WaitForHostScreen - Guest waiting screen when host hasn't started the meeting.

      Parameters

      Returns Element

      This component displays a waiting screen when a guest joins a room before the host has started the meeting. This is different from the waiting room - it's shown when the host hasn't created the room yet.

      When used inside HiyveProvider, state is automatically derived from the useWaitForHost() and useConnection() hooks.

      Context-connected usage (recommended):

      import { useWaitForHost } from '@hiyve/react';
      import { WaitForHostScreen } from '@hiyve/react-ui';

      function App() {
      const { isWaiting } = useWaitForHost();

      if (isWaiting) {
      return <WaitForHostScreen />;
      }
      return <VideoRoom />;
      }

      Manual prop-based usage:

      <WaitForHostScreen
      roomName="Team Meeting"
      timeout={60}
      elapsedTime={30}
      onCancel={() => navigate('/')}
      />

      With custom labels (i18n):

      <WaitForHostScreen
      labels={{
      title: 'En attente de l\'hôte',
      cancelButton: 'Annuler',
      }}
      />