I’m having an issue with TCameraComponent and orientation on iOS.
Here is my code where I create the Camera:
In CameraSampleBufferReady I have (via a TThread.Synchronize):
to show the frame on a TImageControl that is Client-Aligned to a TabItem on a TTabControl (I switch to this tab when the user starts scanning)
In some cases (not always, which is the puzzling thing), the camera appears to get "out of sync" (orientation-wise) with the application, ie. the image on the phone appears rotated 90°, so that when the user moves the phone left/right, the image on the phone moves up/down.
Is there a setting I can send to the Camera that forces it to follow the phone’s orientation, or can I set the Camera’s orientation to a specific setting?
The application is set to "Portrait" + "Upside Down" in Orientation setting.
The same code works flawlessly on Android.