-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[camera] flip/change camera while recording #6478
Conversation
…h cameras without breaking the audio
…nly be used while recording
… switching camera
@stuartmorgan all of your comments have been addressed. setDescription can now be called anytime, the CameraController handles it correctly depending on if its mid recording or not, then updates its state. I want to write tests on calling setDescription while not recording. I will get that done very soon. |
Alright those other tests are created and this is ready for review again @stuartmorgan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addresses my high-level API concern. @bparrishMines Can you re-review the app-facing package's API changes to make sure you are happy with this version?
Since that re-review is limited to the app-facing package, @BradenBagby feel free to start splitting out the sub-PRs (starting with the platform interface) in parallel with that process.
@bparrishMines @stuartmorgan The split out PR for the platform interface is ready here: #7011 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM App-facing package
The split out PR for camera_avfoundation and camera_android is here @hellohuanlin @camsim99 @bparrishMines |
We've just completed the migration of the plugin code to the flutter/packages repository, as described in https://flutter.dev/go/flutter-plugins-repo-migration, and this repository is now being archived. Unfortunately that means that all in-progress PRs here must be moved to flutter/packages. Please see our instructions for an explanation of how to move your PR, and if you have any issues moving your PR please don't hesitate to reach out in the #hackers-ecosystem channel in Discord. Our apologies that your PR was caught in this one-time transition. We're aware that it's disruptive in the short term, and appreciate your help in getting us to a better long-term state! |
Allow switching the camera while recording as requested here flutter/flutter#82467
Currently works for Android and iOS
Possible breaking change: moves cameraDescription from the CameraController to the CameraValue because it can now change without re-initializing a whole new controller. This can be changed if there is a better way