Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash Bug #1267

Closed
Shahidzbi4213 opened this issue Jan 7, 2024 · 3 comments
Closed

Flash Bug #1267

Shahidzbi4213 opened this issue Jan 7, 2024 · 3 comments

Comments

@Shahidzbi4213
Copy link

Shahidzbi4213 commented Jan 7, 2024

Flash Auto and Flash On is not working with camera2.

Picture/Video using snapShotApi

Device Redmi Note 12
Android Version 14

@EzequielAdrianM
Copy link
Contributor

Hi, if you use the Picture Snapshot and Video Snapshot, it is taking a screenshot directly from the OpenGL surface. This means that photo and video are taken much faster, but the Android camera was never actually ordered to take anything, thats why you see no flash. If you want all the camera functionalities you must use the takePicture and recordVideo (no snapshot) versions.

@Shahidzbi4213
Copy link
Author

Shahidzbi4213 commented Jan 9, 2024

Thanks buddy for clearing that up but that also means with takePicture()/Video we will not be - able to show the watermark.

@EzequielAdrianM
Copy link
Contributor

According to the documentation watermark only works when using snapshot. Anyway, you can manually attach your watermark(bitmap) overlay into the picture using a canvas. And for watermark in video I highly recommend using LiTr. We use it in production for overlay bitmap, gif, and stickers in our videos and works like a champ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants