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.
useLiveKitRoom
LiveKitRoom
Room
const { room, htmlProps } = useLiveKitRoom();return <div {...htmlProps}>...</div>;
Generated using TypeDoc
The
useLiveKitRoom
hook is used to implement theLiveKitRoom
or your custom implementation of it. It returns aRoom
instance and HTML props that should be applied to the root element of the component.Example