OptionalcompactUse compact mode with smaller controls (default: false)
OptionaldisabledDisable all selectors
OptionaliconsCustom icons
OptionallabelsCustom labels for i18n support
Callback when device selection changes
OptionalonCallback when an error occurs during device enumeration or selection
OptionalorientationOrientation of the selectors (default: 'vertical')
OptionalpersistEnable persistence of device selections to localStorage. When enabled, selections are saved automatically and restored on mount.
true to enable with default storage key ('hiyve-selected-devices')OptionalselectedCurrently selected devices
OptionalshowShow audio input selector (default: true)
OptionalshowShow audio output selector (default: true)
OptionalshowShow the refresh button to re-enumerate devices. Useful when devices are connected/disconnected and the list needs updating. Clears the MediaDeviceManager cache and re-enumerates all devices.
OptionalshowShow video input selector (default: true)
OptionalsxMUI sx styling prop
Props for the DeviceSelector component.
Remarks
DeviceSelector provides dropdown menus to select camera, microphone, and speaker devices. It supports both the Hiyve MediaDeviceManager and direct browser APIs.
Features:
Example
Basic usage:
Example
With MediaDeviceManager: