Spelt / ZXing.Delphi

ZXing Barcode Scanning object Pascal Library for Delphi VCL and Delphi Firemonkey
Apache License 2.0
468 stars 205 forks source link

Delphi10.4.1 ios13.7 FmxTestApp not working #109

Closed AppSep closed 3 years ago

AppSep commented 3 years ago

Hi, on click on "Start Camera" Button on a iPad the app crash with a execption. ECaptureDeviceException.

But i think this is a problem from the TCameraComponent.

Maybe you can check this please?

Unit FMX.Media.AVFoundation ` procedure TAVVideoCaptureDevice.RecordingRequestAccessForMediaTypeCompletionHandler(granted: Boolean); var LMessage: string; begin if granted then LMessage := string.Empty else LMessage := SUserRejectedCaptureDevicePermission;

TThread.Synchronize(nil, procedure begin DoPermissionRequest(LMessage, granted); ----> exception here end); end; `

Spelt commented 3 years ago

The code above looks fine to me.

But the fmx camera is not the best camera. It does not perform very well. If you need scanning and IOS only then you better off with scanning natively because scanning is build into IOS camera. Look at WinSoft.sk

Anyway, I uploaded an improvement of the fmxTestApp. Maybe it will help.

AppSep commented 3 years ago

thank you, i have delete the complete delphi 10.4.1 and all registry keys, after a new delphi install it works.