Felipe Xavier Posted February 12, 2016 Share Posted February 12, 2016 I wanted to set up a game to take funny pictures. For this I need to know if the Phaser can manipulate the phone's camera!If he can, does anyone have any example ?! Link to comment Share on other sites More sharing options...
fillmoreb Posted February 12, 2016 Share Posted February 12, 2016 Phaser doesn't have anything for this, but HTML5 has provisions for accessing the camera in a limited fashion. <input type="file" accept="image/*"> The above code will create a file input that will launch the camera on mobile phones. But this works like any other file upload, you may be able to get it to work, I'm not sure. If you're packaging your app with something like PhoneGap, they add functionality that would let you do something like this, here's a quick example I found online. http://code.tutsplus.com/tutorials/phonegap-from-scratch-camera-api-app-exporting--mobile-9519 Tilde 1 Link to comment Share on other sites More sharing options...
Recommended Posts