Hello, is there any way of accessing mobile camera through my website? I want to open mobile camera through my website and take a picture and upload to server. Something similar to viber, when you install the app in your desktop they ask you to scan the QR code to access it, and imediately the camera opens on your phone. Any help will be appreciated.
Stefce 146 Posting Pro
Recommended Answers
Jump to PostThat's a lot of things you need to code up. However I just tried https://codepen.io/justinklemm/pen/cDrFo on Chrome on my LG G4 Android phone and after I let it use the camera, I had a video feed onscreen from the camera.
So, my …
Jump to PostThis code is great and works when i visit the link on my phone too, but i copy and paste it on my server and doesn't work?
Did you include the jQuery library on your page?
Also be cautious when using
Navigator.getUserMedia()
. It could be deprecated in the …
Jump to Post@Sim. I was careful to write which browser I used on my LG G4. There are browsers that come with the phones and most are limited. So you have to test what does and does not work on each browser and each phone.
All 11 Replies
gentlemedia 803 Master Poster
Stefce 146 Posting Pro
gentlemedia 803 Master Poster
rproffitt 2,701 https://5calls.org Moderator
gentlemedia commented: Nice one! Wasn't aware of Navigator.getUserMedia() +6
Stefce 146 Posting Pro
JamesCherrill commented: That's a good idea +15
Stefce 146 Posting Pro
gentlemedia 803 Master Poster
SimonIoa 77 Master Poster
rproffitt 2,701 https://5calls.org Moderator
SimonIoa 77 Master Poster
rproffitt 2,701 https://5calls.org Moderator
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.