Questions tagged [enumerate-devices]
24 questions
8
votes
2 answers
enumerateDevices after getUserMedia: how to find the active devices?
Is there a way to detect which device (camera, microphone) is active, given a MediaStream instance?
The app I'm currently working on does simply query for such a stream and attaches it to a element:
const stream = await…

DMKE
- 4,553
- 1
- 31
- 50
3
votes
1 answer
Trying to capture audio but navigator.mediaDevices.enumerateDevices() is NULL on Safari 12 even with microphone permissions granted
See related question: Navigator.mediaDevices.getUserMedia not working on iOS 12 Safari
We are trying to capture audio from user input user MediaDevices.getUserMedia and Audio Context
When the user clicks a button we check for available devices and…

islalobo
- 617
- 2
- 8
- 22
3
votes
1 answer
wpd c# enumerating devices content when more then one device is present
I developed an application that enumerates and merges the content maps of all drives ever connected to a system.
Doing the same for devices with the WPD API Interop.PortableDeviceApiLib.dll, there is a marshal limit for managing contemporary…

fbazzi
- 31
- 3
2
votes
1 answer
What is the meaning of device label last part (ex - 413c:c00f) in deviceInfo from enumerateDevices?
I am querying for devices using enumerateDevices and listing the labels of all microphone devices. The labels are like -
Communications - Headset Microphone (Jabra Link 370) (0b0e:245e)
Echo Cancelling Speakerphone (8- C3422WE)…

user3908730
- 77
- 8
2
votes
2 answers
Unable to get property 'enumerateDevices' of undefined or null reference
I'm using enumerateDevices (See reference here) to get the user's camera and microphones list.
This code works great on Chrome:
$(document).ready(function(){
navigator.mediaDevices.enumerateDevices()
.then(gotDevices)
});
But since it's…

Koby Douek
- 16,156
- 19
- 74
- 103
1
vote
0 answers
navigator.mediaDevices is undefined in WKWebView
Currently i'm creating website that using camera and run in WebView of mobile apps (IOS and Android).
I'm using WKWebView to present it in swift 5. But the return of Navigator.mediaDevices is undefined inside webview.
But it's only happen in iOS 14…

lauwis
- 323
- 1
- 4
- 15
1
vote
0 answers
How to only list audio devices using FFmpeg?
I am doing an audio recording project using FFmpeg 5.0.1. To list all the available audio input devices for the user to select and use, I used the function avdevice_list_input_sources(). My code goes like…

Leon
- 23
- 7
1
vote
0 answers
Can I create a stream from macro camera when available?
Is there any way to get a stream of the macro camera using the mediaDevices.getUserMedia(constraints)?
I'm trying to create a web app that will scan printed out barcodes and noticed that on some phones like Samsung A51, if I just use the facingMode:…

vasnakos
- 61
- 5
1
vote
0 answers
How can you ask for an alternative video input in Safari?
To get an alternative video input from MediaDevices.getUserMedia, my understanding is that you need to pass in the deviceID as a constraint. But, in Safari, to get access to deviceIDs via enumerateDevices, I need to call getUserMedia and get…

Thomas O'Brien
- 41
- 6
1
vote
0 answers
What Devices are in \\.\ Namespace?
I know I can open a physical device by CreateFile with names like "\\.\name,
e.g. "\\.\CdRom0" or "\\.\PhysicalDrive0".
Are the other available device names documented somewhere?
Is there a way to enumerate them?

DontPanic
- 2,164
- 5
- 29
- 56
1
vote
1 answer
List only devices shown in 'Devices and Printers' panel
I am writing an application in C# that will run on a users PC and I want to list only the devices that are shown in the Windows "Devices and Printers" control panel, things like monitors, keyboard, mouse, speakers etc.
I can use WMI to extract a…

Gareth J
- 41
- 6
1
vote
1 answer
Windows IoT Raspberry Pi 3 C# Enumerate USB Audio Adapter
I intend to connect 2 or more USB audio adapter (each with mic & line) to my raspberry pi 3. Therefore I need to enumerate the audio devices for audio render and audio capture respectively and display them on a listbox similar to audioinsample .
I…

mylim
- 313
- 4
- 16
0
votes
1 answer
cannot read property ''enumerateDevices' of undefined over http
I create asp.net web application and copy code from https://webrtc.github.io/samples/src/content/getusermedia/canvas/
and public project to iis link http://123.111.1.222/test/camera.aspx not working is error
This is the error message
Uncaught…

mam
- 87
- 1
- 9
0
votes
1 answer
navigator.mediaDevicesenumerateDevice() "audiooutput" not show in safari
I found a problem that navigator.mediaDevices.enumerateDevice() not show a audiooutput when I use Safari browser enter image description here but audioinput and videoinput still normally
In another case I use Chrome browser to see audiooutput but it…

Mac EiEi
- 13
- 4
0
votes
1 answer
C++ How to map USB Camera device names/paths to USB ports
Is there any way to get all connected USB Camera devices in accordance with the USB port order?
I use something like this to get device friendly names and their paths but it's not ordered(So, I don't know which one connected to which port):
int…
user10091872