Open camera within app to cature image and video recording like in instagram
Thanks for reply. But I have to open camera in my app.I mean within a div
Yes it gives options to open camera or get picture/video from library.
This screenshot from my app:
You only need to execute the code from your div click event
if you are using instagram then you can understand easily. I need to open camera within my content like in template
not default camera of the device.
This is not duplicate as camera need to be open within app not default camera of the device.
ah I see. Ok well if a web page tries to upload a photo the default behavior is to allow the users to take a photo or upload from camera roll (photo gallery). If you want to write your own camera you’ll need to access the IOS or Android native API calls. See Apple Developer docs.
You will need a separate Cordova plugin, like: https://github.com/westonganger/cordova-plugin-camera-preview/tree/skanygin or off course you can build one yourself as @maxhodges mentioned.