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

    Interface UseDeviceManagementOptions

    Options for the useDeviceManagement hook

    interface UseDeviceManagementOptions {
        client: DeviceClient | null;
        disabled?: boolean;
        labels: Pick<
            ControlBarLabels,
            "cameraFallback"
            | "microphoneFallback"
            | "speakerFallback",
        >;
        onAudioDeviceChange?: (deviceId: string) => void;
        onAudioOutputDeviceChange?: (deviceId: string) => void;
        onError?: (error: Error, operation: string) => void;
        onVideoDeviceChange?: (deviceId: string) => void;
        setAudioInputDevice: (deviceId: string) => void;
        setAudioOutputDevice: (deviceId: string) => void;
        setVideoDevice: (deviceId: string) => void;
    }
    Index

    Properties

    client: DeviceClient | null

    The client instance for device operations

    disabled?: boolean

    Whether controls are disabled

    labels: Pick<
        ControlBarLabels,
        "cameraFallback"
        | "microphoneFallback"
        | "speakerFallback",
    >

    Labels for device fallback names

    onAudioDeviceChange?: (deviceId: string) => void
    onAudioOutputDeviceChange?: (deviceId: string) => void
    onError?: (error: Error, operation: string) => void
    onVideoDeviceChange?: (deviceId: string) => void

    Callbacks

    setAudioInputDevice: (deviceId: string) => void
    setAudioOutputDevice: (deviceId: string) => void
    setVideoDevice: (deviceId: string) => void

    Context hooks for device persistence