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

demo outward facing camera is showing white screen. #17

Open
laurencefass opened this issue Jul 1, 2021 · 5 comments
Open

demo outward facing camera is showing white screen. #17

laurencefass opened this issue Jul 1, 2021 · 5 comments
Assignees

Comments

@laurencefass
Copy link

laurencefass commented Jul 1, 2021

The demo at:

https://purple-technology.github.io/react-camera-pro/

does not work with the outward facing camera of mobile phone with front and rear cameras - shows only a white screen.

Ive tested this alongside phone camera app and other react camera solutions so sure the camera is working

thanks

@laurencefass
Copy link
Author

laurencefass commented Jul 1, 2021

i've set up a sandbox for this and it is not showing the video stream for the camera. This displays no camera video stream and the facingMode does not work. The code is taken from your example so should be correct.

https://codesandbox.io/s/react-camera-pro-pp38n?file=/src/App.js

@xurban42
Copy link
Contributor

xurban42 commented Jul 14, 2021

Hi @laurencefass. On which platform did you experience the issues? Platform/browser?

@xurban42 xurban42 self-assigned this Jul 14, 2021
@laurencefass
Copy link
Author

Android phone and Windows chrome browser

@halffunction
Copy link

Chrome in Android not working.

@aneeshbhatb
Copy link

aneeshbhatb commented Jul 22, 2022

@halffunction Android chrome requires secure connection to access media devices. Try hosting your app with HTTPS.
If you are using react-scripts, set HTTPS=true before the start ("start": "HTTPS=true react-scripts start")

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

4 participants