Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser not requesting camera access #227

Open
adarshkush13 opened this issue May 10, 2021 · 2 comments
Open

Browser not requesting camera access #227

adarshkush13 opened this issue May 10, 2021 · 2 comments

Comments

@adarshkush13
Copy link

adarshkush13 commented May 10, 2021

We followed the below installation steps as given in readme file on our ubuntu system version 20.04

  • Install Nodejs binaries on Linux

  • Install dependencies
    sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++

  • Clone github project
    mkdir ~/spectrum
    cd ~/spectrum
    git clone https://github.com/publiclab/spectral-workbench.js.git

  • Install npm packages globally
    npm install -g http-server
    npm install -g bower

  • Install npm packages locally
    npm install
    grunt build

We tried to run this on our system
https://publiclab.github.io/spectral-workbench.js/examples/capture/
as mentioned in readme file

Our browser was not requesting access to camera when we started the server
http://(IP ADDRESS):8080/examples/capture/

Please tell us how to fix this issue
spectrum

we are using chrome browser version 90 .

Note: When we open official site https://spectralworkbench.org/ and try to capture spectra camera works.

@welcome
Copy link

welcome bot commented May 10, 2021

Thanks for opening your first issue here! Please follow the issue template to help us help you 👍🎉😄
If you have screenshots to share demonstrating the issue, that's really helpful! 📸 You can make a gif too!

@waridrox
Copy link
Member

Hi @adarshkush13, thanks a lot for reporting that 💯! The camera feed unfortunately does not work with the URLs of the form http://IP address:8080/examples/capture.

The following URLs seem to be working fine though:

http://127.0.0.1:8080/examples/capture/

http://localhost:8080/examples/capture/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants