Open isabsent opened 4 years ago
At the same time your Kotlin
variant MainActivity.kt
works fine when I add pictureResolution = lowestResolution()
to your initial configuration:
object Back : Camera(
lensPosition = back(),
configuration = CameraConfiguration(
previewResolution = firstAvailable(
wideRatio(highestResolution()),
standardRatio(highestResolution())
),
previewFpsRange = highestFps(),
flashMode = off(),
focusMode = firstAvailable(
continuousFocusPicture(),
autoFocus()
),
frameProcessor = {
// Do something with the preview frame
},
pictureResolution = lowestResolution()
)
)
I have user your
ActivityJava
code example to change a picture resolution fromhighestResolution()
tolowestResolution()
without any effect:new Resolution(320, 240)
does change nothing too. My device is LG Stylus 3 (Android 7.0). What is a reason?