import { useAvailableMediaDevices } from "@outspeed/react"

const {
    availableAudioDevices,
    availableVideoDevices,
} = useAvailableMediaDevices();

import { useAvailableMediaDevices } from "@outspeed/react"

const {
    availableAudioDevices,
    availableVideoDevices,
} = useAvailableMediaDevices();

Returns

availableAudioDevices
MediaDeviceInfo[]
  • Returns a list of all audio input devices connected to the system.
availableVideoDevices
MediaDeviceInfo[]
  • Returns a list of all video input devices connected to the system.

Resources