Skip to content

camera is not showing in browser #39

Description

@PratyushKes

HI there, my chrome is unable to show the camera, i mean my camera is not opening on chrome.

Activity

  1. vinamramunot-tech commented on Oct 8, 2020

    @vinamramunot-tech

    are you using "localhost" or "127.0.0.1" or "0.0.0.0"? try one of those. Also check https flag at "chrome://flags" and enable that to check if it works

  2. Ikigainuxxxx commented on Dec 13, 2020

    @Ikigainuxxxx

    are you using "localhost" or "127.0.0.1" or "0.0.0.0"? try one of those. Also check https flag at "chrome://flags" and enable that to check if it works

    what should i enable?

  3. Dushyantsingh-ds commented on Dec 31, 2020

    @Dushyantsingh-ds

    This didn't work!

  4. vinamramunot-tech commented on Jan 12, 2021

    @vinamramunot-tech

    @Dushyantsingh-ds can you share an image and the output of the server when you try to run it? I want to see the output on terminal or the console in dev tools.

  5. vinamramunot-tech commented on Jan 22, 2021

    @vinamramunot-tech

    @WebDevSimplified you can close this issue

  6. AlexDinger commented on Apr 3, 2021

    @AlexDinger

    @vinamramunot-tech I am having this issue as well and I have no errors whatsoever but the camera just wont show up

  7. vinamramunot-tech commented on Apr 4, 2021

    @vinamramunot-tech

    @AlexDinger are you running this on http or https?

    one alternative is to enable chrome flags:

    1. go to chrome and in the url bar type "chrome://flags"
    2. enable this flag

    Screen Shot 2021-04-03 at 11 35 30 PM

    3. run your website as "localhost:". you can have the port number as anything you want, an example is localhost:5050
  8. vinamramunot-tech commented on Apr 4, 2021

    @vinamramunot-tech

    @AlexDinger Also check if any other application is using the camera. Are you running the code on mac/linux or windows?

  9. mister-bee commented on Apr 26, 2021

    @mister-bee

    The actual green camera light goes on, but no image appears on the screen, just a white background.
    At this url: http://127.0.0.1:5500/face-detection/index.html
    And this warning in the console:
    Screen Shot 2021-04-26 at 8 07 49 AM

  10. vinamramunot-tech commented on Apr 28, 2021

    @vinamramunot-tech

    @mister-bee try "http://localhost:5500/face-detection/index.html" and enable the flag I have talked about in the previous comment.

  11. abdelmark commented on Mar 23, 2022

    @abdelmark

    function startVideo() { navigator.mediaDevices.getUserMedia({ video: {} }).then(stream => { const video = document.getElementById('video') video.srcObject = stream video.paly() }) .catch( err => { console.log('Failed to get local stream' ,err); }) }

    use this startVideo function instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions