Web App Camera Snapshot

I’m trying to figure out how to take an HTML5 camera snapshot, rather than a native one. Or, ideally, having one directive or plugin that will take a snapshot using whatever camera is available, on a laptop, device, etc.

I had a plugin for Ionic1 that was working, but have had little success searching for examples or help on this topic for Ionic2/Angular2.

When I try to reference navigator.getUserMedia() in a typescript file it shows up as undefined and will not compile. Any leads or suggestions would be appreciated! I

Could be good to read on this

navigator.getUserMedia is depreciated and removed.