I want to create the app with Ionic to upload video in anywhere.
So I need to capture video and select video from gallery.
I want to add the gallery button in camera page like native camera app, but If I install camera plugin, there is not gallery button.
Great, now we know what you are actually using. This should have been in the first post.
So now on to maybe help you:
The interface being shown is definitely defined by the OS, not by the plugin itself.
The Cordova plugin offers no options to customize this in any way, there probably also is no way to simply edit the code of the plugin to change this as the UI really is not part of the plugin, but from the OS (no .xib or anything in the plugin unlike in some other plugins e.g. barcodescanner).
So you could try to understand the iOS code, find out which “Class” is used to display the OS UI and then find out if there are actually options to add the gallery button somehow. If so, you could fork and edit the plugin and use your fork. But you would probably also have to handle that somehow, so maybe more work.
Thank you @Sujan12.
It’s very helpful. I also think to modify plugin.But It’s difficult to implement like you said.
So I want to find to implement easy way.
I will modify the media capture plugin for my requirement.
Hey @Donbelar, most likely the plugins trigger the native camera which has different UI that varies from the operating system version, so the image you sent is your camera UI from your OS version. Modifying what you want to modify is not possible in the way you want.
You can use another plugin, though, and it may solve your problem, but you gotta customize it entirely.