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

Camera not showing on mobile devices #14

Closed
Ikpeba4ll opened this issue Jun 6, 2018 · 14 comments
Closed

Camera not showing on mobile devices #14

Ikpeba4ll opened this issue Jun 6, 2018 · 14 comments

Comments

@Ikpeba4ll
Copy link

I can't get the camera working on mobile device.. How can i resolve that? Thank you!!

@basst314
Copy link
Owner

basst314 commented Jun 7, 2018

Hi @Ikpeba4ll,

Is the demo-page working on that phone?
https://basst314.github.io/ngx-webcam/?

Phones have to be „relatively current“ regarding their OS in order to support the required WebRTC functionality.

Cheers!

@Ikpeba4ll
Copy link
Author

The demo is working on phone but not in my app

@basst314
Copy link
Owner

basst314 commented Jun 7, 2018

Hi @Ikpeba4ll,

what happens when you load your app on the phone? Any errors?
Also, what version of ngx-webcam / Angular do you use, and how did you integrate the library into your app?

For integration and usage you may check the source code in this library, or in the explicit demo-project I set up.

Let me know if that helps.

@Ikpeba4ll
Copy link
Author

There is no error.. ngx-webcam version is 0.1.5 and angular is 5.2

@basst314
Copy link
Owner

basst314 commented Jun 8, 2018

Actually, there‘s nothing extra that needs to be done for it to run on a capable mobile device.

If the demo page works for you, your phone is current enough to support WebRTC. The library in your app should work as well.

Please check that the app and webcam is working when you access it with your desktop pc, and nothing else in the app is failing on the mobile device. Try to create a minimal running demo (like the one I provided).

Does the mobile device ask you to access the webcam? Do you see an icon in the addressbar for webcam-access? Did you give permissions to access the webcam?

I guess you have to provide a little more information here in order to get the answer.

But it seems like the problem might lie in your app itself or in the way ngx-webcam is integrated there, since the demo-page is working for you.

@Ikpeba4ll
Copy link
Author

Ikpeba4ll commented Jun 8, 2018 via email

@basst314
Copy link
Owner

basst314 commented Jun 9, 2018

Please refer to the sample implementation in ngx-webcam-demo repository or provide more details about what you tried so far to resolve the problem and how your integration looks like, otherwise I might not be able to help.
Thanks!

@Ikpeba4ll
Copy link
Author

Hello team,
I have noticed that the camera doesn't work on other devices and not only mobile phones.. How can I resolve this

@Ikpeba4ll
Copy link
Author

Moreover do I need a https to access it on other devices?

@basst314
Copy link
Owner

basst314 commented Jun 18, 2018

@Ikpeba4ll Were you able to resolve the issue?

@Ikpeba4ll
Copy link
Author

Ikpeba4ll commented Jun 19, 2018 via email

@poojas17
Copy link

poojas17 commented May 8, 2019

How did you resolve this issue?
webcam is triggering snaps on all browsers and their incognitos except Chrome incognito mode.

@Ikpeba4ll
Copy link
Author

Ikpeba4ll commented May 8, 2019 via email

@mspace
Copy link

mspace commented Feb 27, 2020

@Ikpeba4ll I can confirm this behaviour too.
If accessed via https, it asks for permission. If accessed via http I get 'Cannot read UserMedia from MediaDevices'

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