cordova-plugin-camera-preview / cordova-plugin-camera-preview

Cordova plugin that allows camera interaction from HTML code
MIT License
567 stars 559 forks source link

show html element over camera preview? #653

Open wasinr opened 2 years ago

wasinr commented 2 years ago

any idea how to show html element over camera preview?

matiasfic commented 2 years ago

You have toBack options parameter for that. If set to true the camera preview element will be in background and you can add html elements in front of it.

Xerataw commented 2 years ago

When i put on true the toBack option, the prevew juste disappear, and i can't find it..

bilalsaeed commented 1 year ago

I am also facing the same issue. toBack is set to true yet camera does not appear.

Does anyone know the workaround?

westonganger commented 1 year ago

Can you try on master and let me know if that fixes your issue? There was recently a fix for toBack as seen in the changelog

bilalsaeed commented 1 year ago

I managed to fix it. It was due to CSS background not being transparent.

Thank you so much for this awesome plugin my team really loved it. We are going to release our app with this plugin next week and hopefully the clients will also like it.