Hook Options & Returns
UseBroadcastReturn
Return shape of useBroadcast.
type UseBroadcastReturn = {error: unknown;start: object;stop: object;}
UseCallLifecycleOptions
Options shared by the call-lifecycle hooks.
type UseCallLifecycleOptions = {autoStart?: boolean;keepAliveMs?: number;key?: string;}
UseCallReturn
Return shape of useCreateCall / useJoinCall.
type UseCallReturn = {}
UsePreviewPlayerOptions
Options accepted by usePreviewPlayer.
type UsePreviewPlayerOptions = {}
UsePreviewPlayerReturn
Return shape of usePreviewPlayer. Both fields are null until the
preview player has finished initialising; consumers should render a
loading state while they are.
type UsePreviewPlayerReturn = {previewPlayer: PlayerAPI | literal;}
UseRequestPlayerOptions
Options accepted by useRequestPlayer. The source,
requestPlayerOptions, and eventsMap are pinned at first render — the
hook warns in development when any of them change after mount.
type UseRequestPlayerOptions = {}
UseScreensharePlayerOptions
Options accepted by useScreensharePlayer.
UseScreensharePlayerReturn
Return shape of useScreensharePlayer. Exposes the live controller
and player (both null until a screenshare is active), the start/stop
actions, and the most recent error encountered by either action.
type UseScreensharePlayerReturn = {error: unknown;screensharePlayer: PlayerAPI | literal;startScreenshare: object;stopScreenshare: object;}