function enumerateDevices() {
  navigator.mediaDevices.enumerateDevices().then(function(devices) {
    returnToTest(JSON.stringify(devices));
  });
}
/**
 * Queries for media devices on the current system using the getMediaDevices
 * API.
 *
 * Returns the list of devices available.
 */
Queries for media devices on the current system using the getMediaDevices
API.

Returns the list of devices available.
Queries for media devices on the current system using the getMediaDevices API . Returns the list of devices available .
function enumerateDevices() {
  navigator.mediaDevices.enumerateDevices().then(function(devices) {
    returnToTest(JSON.stringify(devices));
  });
}
function enumerateDevices ( ) { navigator . mediaDevices . enumerateDevices ( ) . then ( function ( devices ) { returnToTest ( JSON . stringify ( devices ) ) ; } ) ; }
Queries for media devices on the current system using the getMediaDevices
 API.
Queries for media devices on the current system using the getMediaDevices API .