react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

❓Pause >> Flip Camera >> StartRecording on S22

Open hocaltar opened this issue 3 years ago • 8 comments

Question

Gents,

I have one bug left and it's tormenting me.

Has anyone figured out how to maintain recording while switching between front and back cameras?

Please help!?

What I tried

I thought I had it pinned down. But for some reason it will not start recording again after I pause while switching from back to front.

VisionCamera Version

2.15.1

Additional information

hocaltar avatar Feb 19 '23 13:02 hocaltar

On iOS this works flawlessly, on Android this is a limitation in the native CameraX library. I can't do anything to avoid that.

mrousavy avatar Feb 22 '23 11:02 mrousavy

Thank you for the repo and response!

Follow up question: with V3 utilizing Camera2 instead of CameraX, will pause and resume work on android?

Thanks again!

hocaltar avatar Feb 22 '23 13:02 hocaltar

damn it's been 1 year already for this issue ?

ratz6 avatar Apr 18 '23 20:04 ratz6

Try this https://www.youtube.com/playlist?list=PLQhQEGkwKZUrempLnmxjt7ZCZJu1W3p2i

myselfuser1 avatar Jun 12 '23 03:06 myselfuser1

Closing as this is a stale issue - this might have been fixed with the full rewrite in VisionCamera V3 (🥳) - if not, please create a new issue.

If your issue has been fixed, consider sponsoring me on GitHub to say thanks 💖

mrousavy avatar Sep 30 '23 09:09 mrousavy

Flipping Camera device now works on Android!

mrousavy avatar Sep 30 '23 09:09 mrousavy

and it was really hard to implement lol... I had to create my own custom OpenGL pipeline (400 lines of C++ code) just for that.

mrousavy avatar Sep 30 '23 10:09 mrousavy

hi, could you please provide Flipping Camera device document

rajyuva1000 avatar Nov 20 '23 10:11 rajyuva1000