Select Microphone/Camera in TypeScript Use this class for selecting and setting preferred Microphone/Webcam for media capture This is a simple TypeScript wrapper for enumerateDevices(), storing the preferred media device, and passing it as a constraint to getUserMedia()