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 PostYou'll need a wrapper with something like PhoneGap or Cordova. You can't do this yet at the moment with HTML5. They're still workiong on a HTML5 device API. https://www.w3.org/2009/dap/
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 …
All 11 Replies
gentlemedia
803
Master Poster
Stefce
146
Posting Pro
gentlemedia
803
Master Poster
rproffitt
2,565
"Nothing to see here."
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,565
"Nothing to see here."
Moderator
SimonIoa
77
Master Poster
rproffitt
2,565
"Nothing to see here."
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.