Reputation: 31
I am trying to acces a webcam through WebRTC in Chrome.
Everything works on most PCs but on some it just shows a black screen. Drivers and everything is installed and a little test program from the webcam manufacturer shows a video stream on all PCs.
In Chrome under chrome://media-internals you can look up some information about the media devices used in chrome. On the PCs, that show a valid video stream, Chrome is using Direct Show as the device API. On the PCs, that show a black screen, Chrome is using Media Foundation as the device API.
How can I change the device API Chrome is using to acces the webcam?
Upvotes: 0
Views: 2428
Reputation: 17315
Chrome recently switched to MediaFoundation for capture, see the comments in https://bugs.chromium.org/p/chromium/issues/detail?id=849636#c10 about how to test whether that particular camera works or not. If it does not work with MediaFoundation you should file a bug specifying the camera model so it can be blacklisted. Trying the same camera in Firefox on https://webrtc.github.io/samples/src/content/devices/input-output/ might give an indication about the model.
Upvotes: 2