This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.
$ ionic cordova plugin add cordova-plugin-camera-preview
$ npm install @awesome-cordova-plugins/camera-preview
Showing camera preview in HTML
Requires Cordova plugin:
https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview.git. For more info, please see the Cordova Camera Preview docs.