Languages
[Edit]
EN

React - list available audio and video input devices (e.g. web cameras and microphones)

3 points
Created by:
ArcadeParade
666

In this short article, we would like to show how using React in simple way list available input audio and input video devices (web cameras and microphones).

1. Practical example

Edit

In this section, you can find reusable logic that lists available input devices.

Devices are ordered by importance. It means the most recommended or default devices should be listed as first.

2. Selecting video/audio device example

Edit

In this example, we present listing available audio and video input devices with the possibility of choosing them in the select box.

 

See also

Edit
  1. JavaScript - list available audio and video input devices (e.g. web cameras and microphones)

Referneces

Edit
  1. MediaDevices - MDN docs

  2. MediaDevices enumerateDevices() - MDN docs

Alternative titles

  1. React - list connected web cameras
  2. React - list connected microphones
  3. React - get available audio and video input devices list
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join