-
-
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
🐛 Example app broken when switching devices #834
Comments
Hey, thanks for the bug report! I think on iOS this works, but on Android it does not work because the native camera library (CameraX) does not support this. I have created an issue in their issuetracker, no response yet. |
@mrousavy thanks for the quick response! Hopefully CameraX can add support soon! |
@mrousavy here is an example of how it’s recording IMG_0002.MOV |
Interesting! This might be a bug due to the orientation change I have added? |
@mrousavy any update on this issue ? because I am also facing the same issue. |
This comment was marked as spam.
This comment was marked as spam.
The recording failed because the source becomes inactive and stops sending frames. One case is that if camera is closed due to lifecycle stopped, the active recording will be finalized with this error, and the output will be generated, containing the frames produced before camera closing. Attempting to start a new recording will be finalized immediately if the source remains inactive and no output will be generated...... gtting error in android, this is perfectly working in iOS but not in android can any tell me what the issues is there |
This comment was marked as spam.
This comment was marked as spam.
@AdamTyler I have same issue with stretch and orientation |
Any fix for the Video being stretched while switching cameras on iOS ? |
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?
Switch devices while recording. Is this a supported feature?
Its not working in my own app so I tried to reproduce in example app and see the same issue.
Reproduceable Code
What happened instead?
Upon flipping the camera device between front or back when recording (double tap on the screen), an error message comes up and the recording will not finish properly
Relevant log output
Device
Samsung Galaxy S20+
VisionCamera Version
2.12.0
Additional information
The text was updated successfully, but these errors were encountered: