RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.82k stars 405 forks source link

switching back camera to front and vice versa stretches preview for a seconds than shows correctly #169

Open developer-- opened 6 years ago

developer-- commented 6 years ago

Lenovo API 23 Samsung S4 API 21

Diolor commented 6 years ago

This is happening for sure when there are different aspect ratios between front and back cameras. It's ok when there are same

developer-- commented 6 years ago

Is it fixable for next release?

Diolor commented 6 years ago

I can't promise a timeframe from my side.

dmitry-zaitsev commented 6 years ago

There is a possibility that this is now resolved with the improved camera threading. If the issue still occurs - please let us know.

Diolor commented 6 years ago

It's still reproducible:

    object Back : Camera(
            lensPosition = back(),
            configuration = CameraConfiguration(
                    previewResolution = wideRatio(highestResolution())
            )
    )

    object Front : Camera(
            lensPosition = front(),
            configuration = CameraConfiguration(
                    previewResolution = standardRatio(highestResolution())
            )
    )