Failed to get media devices problem

neogeo

Member
There is a problem with the flashphoner library that enumerates the microphone devices. The problem seems to happen on desktop PCs that only have build in sound card and do not have attached a webcam.

As you can see from my screenshot even though the library cannot enumerate the devices I am able to get the list from console with the enumerateDevices()

upload_2017-10-16_13-47-51.png
 

neogeo

Member
We have tracked down the source of the problem. The getMediaAccess function constraints, should be true/false depending on the return value of the enumerateDevices function. If the video device does not exist, then the respective constrain should be video: false instead
 

Max

Administrator
Staff member
Hello
Thanks for your report.
We have fixed the Media Devices sample. Now even if no camera installed, the Media Devices example will work with microphone.
It was fixed in the Web SDK build b927ff78050e97fd7b1f9f95a84e6efd12bcaa5a
https://flashphoner.com/downloads/b...27ff78050e97fd7b1f9f95a84e6efd12bcaa5a.tar.gz
You can see implementation in the source code:
https://github.com/flashphoner/flashphoner_client/commit/b927ff78050e97fd7b1f9f95a84e6efd12bcaa5a
Here we check if media device is available before setting constraints.
 
Top