enumerateDevices()

enumerateDevices()

This is a wrapper around navigator.mediaDevices.enumerateDevices().

Returns a Promise that resolves with a list of available video input devices, and audio input and output devices.