-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
🐛 Android: Changing device front to back mid video record stops recording #354
Comments
I don't think this is supported by CameraX. I've created an issue in Google's CameraX issue tracker here but haven't received any responses. You can easily take a look at this yourself by playing around with the code and shooting me a PR if you manage to get it working :) |
@mrousavy Awesome for the response, thanks. We were not actually sure this was possible but wanted to explore a bit. This lib allows us to do this swap using iOS. We did noticed most Android apps don't allow this, but did find that the Android Snapchat app supports it. I see that you actually have more info on how they do this. I guess this is probably an enhancement request rather than a bug, and one likely that needs to come from underlying Android lib, so happy to close this issue. Thanks again! |
don't close, let's keep track of it here. |
Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3. I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here? Here's an instruction on how you can test that: #1674 (comment) If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉 Thank you! |
What were you trying to do?
We wanted to allow users to swap between front/back devices
Reproduceable Code
What happened instead?
iOS: Works great. A few frames of oddness when we swap, but nothing big
Android: It swaps the preview, but
onRecordingFinished
is called.Relevant log output
No response
Device
Pixel 2 XL, OnePlus 8T
VisionCamera Version
2.5.0
Additional information
The text was updated successfully, but these errors were encountered: