Hiyve Components - v1.0.0
    Preparing search index...

    Interface UseAdditionalCamerasOptions

    Options for the useAdditionalCameras hook

    interface UseAdditionalCamerasOptions {
        enabled?: boolean;
        generateRoomToken: () => Promise<string>;
        onError?: (error: Error, cameraId: string) => void;
        ownerUserId: string;
        roomName: string;
    }
    Index

    Properties

    enabled?: boolean

    Whether the hook is enabled (e.g., only when in a room)

    generateRoomToken: () => Promise<string>

    Async function that returns a room token for the ghost client

    onError?: (error: Error, cameraId: string) => void

    Callback when an error occurs

    ownerUserId: string

    The owner's userId (used to build ghost camera userIds)

    roomName: string

    The room name to join ghost cameras into