Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
958 stars 245 forks source link

[IOS] Only Photo and Video CaptureModes available #314

Closed BenoitOutman closed 1 year ago

BenoitOutman commented 1 year ago

Hi, on IOS, CaptureModes has only PHOTO and VIDEO modes

so when using previewOnly or analysis cause ios to ask for mic permission:

Cause:

in CamerawesomePlugin.m -> setCaptureMode"Mode" function:

CaptureModes captureMode = ([mode isEqualToString:@"PHOTO"]) ? Photo : Video;

Preview and analysis_only are considered as Video mode.

istornz commented 1 year ago

This is now fixed & releaded on prerelease 2