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 />;
}
WaitForHostScreen - Guest waiting screen when host hasn't started the meeting.