Meteor webcam and mobile camera access?


#1

How to build a website with meteor like when it is accessed by a laptop it can access its webcam and on the other hand when the same website is accessed by the mobile it can access its camera?


#2

That would be really interesting… Have you checked atmospherejs.com? Maybe there is something there @abhinavmanagix. I would like to see this be implemented into an app/web app.


#3

the mdg:camera package does this by default: https://atmospherejs.com/mdg/camera
The camera function works in chrome and firefox but not in safari.

Edit: For camera access on mobile it needs to be packaged as cordova-app.


#4

It should not be an app, On the mobile it can also work on the same web address and will accessed by an web browser from any mobile and uses its camera since its still a website and not an app on mobile.


#5

Browser support for the Camera API is not universal yet. Only Chrome and Firefox on desktop, and only Firefox on Android. Otherwise you need to build an app and use Cordova.

I have been playing with a couple of packages, mdg:Camera is very basic. I have made some improvements at

I also wrapped leemachin/say-cheese into a meteor package as mikkelking:say-cheese. A Meteor demo app is available at https://github.com/mikkelking/cheese-test This is a smoother demo than mdg:camera, and worth a look.


#6

http://caniuse.com/#search=getUserMedia%2FStream