Function useLiveKitRoom

  • The useLiveKitRoom hook is used to implement the LiveKitRoom or your custom implementation of it. It returns a Room instance and HTML props that should be applied to the root element of the component.

    Example

    const { room, htmlProps } = useLiveKitRoom();
    return <div {...htmlProps}>...</div>;

    Type Parameters

    Type Parameters

    • T extends HTMLElement

    Parameters

    • props: LiveKitRoomProps

    Returns { htmlProps: HTMLAttributes<T>; room: Room | undefined }

    • htmlProps: HTMLAttributes<T>
    • room: Room | undefined

Generated using TypeDoc