UNPKG

@huddle01/react

Version:

The Huddle01 React SDK offers a comprehensive suite of hooks, methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.

23 lines (20 loc) 702 B
import * as _huddle01_web_core_types from '@huddle01/web-core/types'; import { RoomControls, RoomEvents } from '@huddle01/web-core/types'; declare const useRoomControls: (props?: { onRoomControlsUpdated: (data: RoomControls) => void; onRoomLeave: (data: RoomEvents["room-closed"][0]) => void; }) => { roomControls: { roomLocked: boolean; allowProduce: boolean; allowProduceSources: { cam: boolean; mic: boolean; screen: boolean; }; allowConsume: boolean; allowSendData: boolean; }; updateControls: (data: _huddle01_web_core_types.NewRoomControls) => Promise<void>; }; export { useRoomControls };