Skip to content
zenui/react-hooks

useMediaDevices

List the cameras, microphones and speakers the browser can see, and refresh when one is plugged in or removed. Device labels stay empty until the page has camera or microphone permission.

Level
Intermediate
Since
v1.0.0
import {useMediaDevices} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device