-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[p:camera] Make it possible to switch camera while recording a video #82467
Comments
This functionality is a must for any modern app. Is there a limitation why there is no PR opened for this functionality yet like native side blockers? |
I agree this is a necessary feature. |
Is there any workaround for it? |
has there been a fix to the issue? |
For anyone interested in implementing this, flutter/plugins#4445 was a work-in-progress PR that could serve as a starting point. |
updated PR flutter/plugins#6478 |
I believe this issue is now resolved via flutter/packages#3496? @stuartmorgan @BradenBagby |
Yes, we forgot to add the issue to the new PR. Thanks! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Use case
Right now, the cameraDescription is set when you create a new CameraController instance, and you can't change it after that. Sometimes, when I record a video, I want to be able to switch from the front-facing to the back-facing camera mid-recording to show something. Certain packages like camerawesome allow that but only on iOS.
Proposal
Add a
setCamera(CameraDescription)
method to CameraController, that can be called while recording, or at the very least when the controller is paused so that we can pause, switch and resume in the same file.The text was updated successfully, but these errors were encountered: