enebin / Aespa

From camera to album, in just 2 lines
https://enebin.github.io/Aespa/documentation/aespa/
MIT License
106 stars 20 forks source link

Cannot rotate front camera #56

Open derwaldgeist opened 4 months ago

derwaldgeist commented 4 months ago

After I resolved #54 and #55 by manually setting the AVVideoCaptureOrientation, I noticed that this does not work if I switch to the front camera. In this case, Aespa throws an error in the console:

Changing orientation is not supported currently. This behavior will be ignored. | Message: in VideoOrientationTuner(orientation: __C.AVCaptureVideoOrientation)
[⚠️ Aespa Error] 2024-07-10 17:19:02 +0000 | Method: run(_:_:) | Error: connection(reason: Aespa.AespaError.ConnectionErrorReason.cannotChangeVideoOrientation) | Description: Changing orientation is not supported currently. This behavior will be ignored. | Message: in VideoOrientationTuner(orientation: __C.AVCaptureVideoOrientation)

Is there a way to make the front camera work on a rotated device?