How to change Chromes media device API












0















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?










share|improve this question























  • This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

    – jib
    Nov 23 '18 at 13:48


















0















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?










share|improve this question























  • This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

    – jib
    Nov 23 '18 at 13:48
















0












0








0








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?










share|improve this question














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?







google-chrome webrtc directshow ms-media-foundation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 9:30









Anton L.Anton L.

185




185













  • This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

    – jib
    Nov 23 '18 at 13:48





















  • This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

    – jib
    Nov 23 '18 at 13:48



















This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

– jib
Nov 23 '18 at 13:48







This seems hardware related, not about programming. There's just one WebRTC API for all devices (emphasis on 'web'). Unless you're attempting to fix Chrome by building a custom version of Chromium? If so, please include more detail.

– jib
Nov 23 '18 at 13:48














1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer


























  • I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

    – Anton L.
    Nov 23 '18 at 21:26













  • Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

    – Anton L.
    Nov 27 '18 at 8:34













  • Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

    – Philipp Hancke
    Nov 27 '18 at 9:23











  • in particular a screenshot of chrome://media-internals when it works.

    – Philipp Hancke
    Nov 27 '18 at 18:02






  • 1





    bugs.chromium.org/p/chromium/issues/…

    – Anton L.
    Nov 29 '18 at 8:57











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443908%2fhow-to-change-chromes-media-device-api%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














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.






share|improve this answer


























  • I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

    – Anton L.
    Nov 23 '18 at 21:26













  • Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

    – Anton L.
    Nov 27 '18 at 8:34













  • Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

    – Philipp Hancke
    Nov 27 '18 at 9:23











  • in particular a screenshot of chrome://media-internals when it works.

    – Philipp Hancke
    Nov 27 '18 at 18:02






  • 1





    bugs.chromium.org/p/chromium/issues/…

    – Anton L.
    Nov 29 '18 at 8:57
















1














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.






share|improve this answer


























  • I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

    – Anton L.
    Nov 23 '18 at 21:26













  • Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

    – Anton L.
    Nov 27 '18 at 8:34













  • Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

    – Philipp Hancke
    Nov 27 '18 at 9:23











  • in particular a screenshot of chrome://media-internals when it works.

    – Philipp Hancke
    Nov 27 '18 at 18:02






  • 1





    bugs.chromium.org/p/chromium/issues/…

    – Anton L.
    Nov 29 '18 at 8:57














1












1








1







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.






share|improve this answer















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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 '18 at 14:59

























answered Nov 23 '18 at 14:54









Philipp HanckePhilipp Hancke

6,4241513




6,4241513













  • I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

    – Anton L.
    Nov 23 '18 at 21:26













  • Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

    – Anton L.
    Nov 27 '18 at 8:34













  • Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

    – Philipp Hancke
    Nov 27 '18 at 9:23











  • in particular a screenshot of chrome://media-internals when it works.

    – Philipp Hancke
    Nov 27 '18 at 18:02






  • 1





    bugs.chromium.org/p/chromium/issues/…

    – Anton L.
    Nov 29 '18 at 8:57



















  • I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

    – Anton L.
    Nov 23 '18 at 21:26













  • Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

    – Anton L.
    Nov 27 '18 at 8:34













  • Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

    – Philipp Hancke
    Nov 27 '18 at 9:23











  • in particular a screenshot of chrome://media-internals when it works.

    – Philipp Hancke
    Nov 27 '18 at 18:02






  • 1





    bugs.chromium.org/p/chromium/issues/…

    – Anton L.
    Nov 29 '18 at 8:57

















I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

– Anton L.
Nov 23 '18 at 21:26







I will try it with Firefox and with the -disable-MediaFoundation tag on monday. But the PCs on which the webcam is working on, are running the same version of Chrome. I doublechecked that.

– Anton L.
Nov 23 '18 at 21:26















Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

– Anton L.
Nov 27 '18 at 8:34







Thanks, the disable-feature=MediaFoundationVideoCapture flag helped.

– Anton L.
Nov 27 '18 at 8:34















Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

– Philipp Hancke
Nov 27 '18 at 9:23





Can you gather more information about the device (manifacturer, model name) and file a bug at crbug.com please? That sounds like the device needs to be blacklisted. Please post a link to the bug here.

– Philipp Hancke
Nov 27 '18 at 9:23













in particular a screenshot of chrome://media-internals when it works.

– Philipp Hancke
Nov 27 '18 at 18:02





in particular a screenshot of chrome://media-internals when it works.

– Philipp Hancke
Nov 27 '18 at 18:02




1




1





bugs.chromium.org/p/chromium/issues/…

– Anton L.
Nov 29 '18 at 8:57





bugs.chromium.org/p/chromium/issues/…

– Anton L.
Nov 29 '18 at 8:57




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53443908%2fhow-to-change-chromes-media-device-api%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Costa Masnaga

Fotorealismo

Sidney Franklin