GitHub

Source

useLocalParticipantPermissions

The useLocalParticipantPermissions hook returns the local participant's permissions.

Import

import { useLocalParticipantPermissions } from "@livekit/components-react";

Usage

const { canPublish, canPublishData } = useLocalParticipantPermissions();

Returns

import("livekit-client/dist/src/proto/livekit_models_pb").ParticipantPermission | undefined;