Hi. I’m in the early stages of an app that utilizes the phones built in camera. I know there are great cordova-API’s for this, but to have a usable camera during the production stages I thought I’d use HTML5’s navigator.mediaDevices.getUserMedia()
as a stand in. Oddly, the Ionic 2 serve-compiler refuses to believe that mediaDevices
exists as a property on navigator
and thus doesn’t to compile. I’ve even logged the navigator object to confirm that it does exist. What am I missing?
I’m using ionic 2 beta.11, and I’ve installed typings for the two main webRTC modules that’s required, if that matters.