cordova-plugin-camera-preview
cordova-plugin-camera-preview copied to clipboard
is there plan for browser platform support?
We are developing web app, it there a plan to support the platform of browser ?
Because this project is actively seeking maintainers I suppose that browser support is not on anyone's radar right now.
I would like to start the browser implementation, i just need someone to setup the proxy plugin becouse I cant get how cordova works... cordova.js:74 Uncaught module cordova-plugin-camera-preview.CameraPreview already defined
- I added platform support part into plugin.xml
<platform name="browser">
<config-file target="config.xml" parent="/*">
<feature name="CameraPreview">
<param name="browser-package" value="CameraPreview" />
</feature>
</config-file>
<js-module src="src/browser/CameraPreview.js" name="CameraPreview">
<runs />
</js-module>
</platform>
- created proxy file in src/browser/CameraPreview.js
var CameraPreview = function() {};
CameraPreview.startCamera = function(options, onSuccess, onError) {
alert();
};
module.exports = {
CameraPreview: CameraPreview
};
require('cordova/exec/proxy').add('CameraPreview', module.exports);
@marcusdiy do you have updates regarding your browser support implementation? We are also building a web app and need this feature. If you need assistance in development I would be happy to take a look. I have no prior experience developing cordova plugins but I'm eager to learn 😊