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

[p:camera] Make it possible to switch camera while recording a video #82467

Closed
sarbogast opened this issue May 13, 2021 · 9 comments
Closed

[p:camera] Make it possible to switch camera while recording a video #82467

sarbogast opened this issue May 13, 2021 · 9 comments
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.

Comments

@sarbogast
Copy link

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.

@sarbogast sarbogast changed the title Make it possible to switch camera while recording a video [p:camera] Make it possible to switch camera while recording a video May 13, 2021
@darshankawar darshankawar added in triage Presently being triaged by the triage team p: camera The camera plugin p: first party c: proposal A detailed proposal for a change to Flutter c: new feature Nothing broken; request for a new capability and removed in triage Presently being triaged by the triage team labels May 14, 2021
@aytunch
Copy link

aytunch commented May 17, 2021

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?

@tjcampanella
Copy link

I agree this is a necessary feature.

@Chetan-3110
Copy link

Is there any workaround for it?

@farmery
Copy link

farmery commented Feb 15, 2022

has there been a fix to the issue?

@stuartmorgan
Copy link
Contributor

For anyone interested in implementing this, flutter/plugins#4445 was a work-in-progress PR that could serve as a starting point.

@BradenBagby
Copy link

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

@iakmds
Copy link

iakmds commented Apr 12, 2023

I believe this issue is now resolved via flutter/packages#3496? @stuartmorgan @BradenBagby

@stuartmorgan
Copy link
Contributor

Yes, we forgot to add the issue to the new PR. Thanks!

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 26, 2023
@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter p: camera The camera plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

9 participants