Skip to content

[camera_avfoundation] Implementation swift migration - part 2 #9007

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

Conversation

RobertOdrowaz
Copy link
Contributor

@RobertOdrowaz RobertOdrowaz commented Apr 5, 2025

Migrates camera implementation as part of flutter/flutter#119109

This PR migrates CameraPlugin class.

While it wasn't the goal of this PR it partially resolves the issue regarding switching the camera during recording. The main problem there was that the capture device wasn't actually changed because the camera name passed to the FLTCam.setDescriptionWhileRecording wasn't used and instead a captureDeviceFactory was called which returned a capture device with the same name as during the initial set up. In this pr "named" capture device factory is propagated to FLTCam allowing passing the new capture device name during in setDescriptionWhileRecording.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-implementation-swift-migration-part2 branch 3 times, most recently from aa4269d to 8be6136 Compare April 16, 2025 10:43
@RobertOdrowaz RobertOdrowaz marked this pull request as ready for review April 16, 2025 11:26
@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-implementation-swift-migration-part2 branch from 8be6136 to 859ad13 Compare April 16, 2025 11:32
Copy link
Contributor

@hellohuanlin hellohuanlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a complete review, left a few questions

@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-implementation-swift-migration-part2 branch from 859ad13 to 63292b4 Compare April 23, 2025 07:03
@RobertOdrowaz RobertOdrowaz force-pushed the feature/camera-implementation-swift-migration-part2 branch from 63292b4 to 2898d01 Compare April 30, 2025 06:43
@RobertOdrowaz RobertOdrowaz added the autosubmit Merge PR when tree becomes green via auto submit App label May 1, 2025
@auto-submit auto-submit bot merged commit 250ee0d into flutter:main May 1, 2025
82 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 1, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request May 1, 2025
flutter/packages@8d01cd9...250ee0d

2025-05-01 [email protected] [camera_avfoundation]
Implementation swift migration - part 2 (flutter/packages#9007)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: camera platform-ios platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants