Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

655
Visualizações
DOMException: Could not start video source | only in Chrome

I am trying to get a video from my webcam. My code is working in Firefox and Microsoft Edge perfectly but not working in Chrome. I also host my code on an HTTPS server but didn't work.

My Code:

<html>
<body>
    <script>
        navigator.mediaDevices.getUserMedia({video: true})
        .then( stream => console.log("success") )
        .catch( err => console.log(err, err.name) );
    </script>
</body>
</html>

After running this code on Google Chrome browser, I am getting this error in the console:

DOMException: Could not start video source 'NotReadableError'

Chrome Version: 100.0.4896.127 (Official Build) (64-bit) on Windows 11.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

this error appears if the camera is already in use by another browser or application

about 4 years ago · Juan Pablo Isaza Relatório

0

Check the size of the output video you are defining. If the camera doesn't support the resolution, it gives that error. Try a lower one, like 320x320.

about 4 years ago · Alex Urtubia Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda