Mayjo Antony Posted May 9, 2018 Share Posted May 9, 2018 Is web camera access is possible in phaser 3? If yes. Any one can, please provide me a sample code. How to use webcam.js plugin with phaser 3 game, To access the system web camera. Link to comment Share on other sites More sharing options...
snowbillr Posted May 9, 2018 Share Posted May 9, 2018 Phaser 3 is just JavaScript that runs in a user's browser. You can call whatever JavaScript APIs you want in your code. I don't think Phaser 3 provides its own API to access a webcam, but you can hook into the native browser functionality yourself. Take a look at https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos for an example of how to do so. Link to comment Share on other sites More sharing options...
Recommended Posts