Open camera within app to cature image and video recording like in instagram


#1

Open camera within app to cature image and video recording like in instagram


#2

I use: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/

It’s work with me


#3

Thanks for reply. But I have to open camera in my app.I mean within a div


#4

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


#5

if you are using instagram then you can understand easily. I need to open camera within my content like in template


#6

not default camera of the device.


#7

duplicate Need example for upload camera image


#8

This is not duplicate as camera need to be open within app not default camera of the device.


#9

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.


#10

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.