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

    Interface DeviceMenuProps

    Props for the DeviceMenu component

    interface DeviceMenuProps {
        audioDevices: MediaDevice[];
        audioOutputDevices: MediaDevice[];
        colors: ControlBarColors;
        disabled: boolean;
        hasClient: boolean;
        icons: ControlBarIcons;
        isAudioOutputSupported: boolean;
        isChangingAudioDevice: boolean;
        isChangingAudioOutputDevice: boolean;
        isChangingVideoDevice: boolean;
        labels: ControlBarLabels;
        onAudioDeviceChange: (deviceId: string) => void;
        onAudioOutputDeviceChange: (deviceId: string) => void;
        onMenuOpenChange?: (open: boolean) => void;
        onOpenDeviceSelector?: () => void;
        onVideoDeviceChange: (deviceId: string) => void;
        selectedAudioDevice: string;
        selectedAudioOutputDevice: string;
        selectedVideoDevice: string;
        styles: ControlBarStyles;
        videoDevices: MediaDevice[];
    }
    Index

    Properties

    audioDevices: MediaDevice[]
    audioOutputDevices: MediaDevice[]
    disabled: boolean
    hasClient: boolean
    isAudioOutputSupported: boolean
    isChangingAudioDevice: boolean
    isChangingAudioOutputDevice: boolean
    isChangingVideoDevice: boolean
    onAudioDeviceChange: (deviceId: string) => void
    onAudioOutputDeviceChange: (deviceId: string) => void
    onMenuOpenChange?: (open: boolean) => void

    Fires when the menu opens or closes, so the parent can pause/resume auto-hide.

    onOpenDeviceSelector?: () => void

    Callback to open the full device selector dialog. When provided, adds a menu item at the bottom.

    onVideoDeviceChange: (deviceId: string) => void
    selectedAudioDevice: string
    selectedAudioOutputDevice: string
    selectedVideoDevice: string
    videoDevices: MediaDevice[]