TLDR: A single device have experienced a malfunction while using the zooming functionality. If this should be a bigger issue it should be looked at further.
If you come across this issue and you have a Nokia device, it would be nice if you can test this issue so we can get some data on how big the issue is.
Issue description
When zooming, in this case using the StreamPack demo-camera app - When setting the zoomRatio, the preview appears to stop displaying the camera view.
With the error message E/CameraDeviceCallback: Camera 0 is in error 4
At this point we dont know the scope of this issue.
We want to figure out the cause of this issue.
These are the candidates that we can come up with.
Android 11
Nokia's android distro
The model Nokia T20
StreamPack
The spcific device that i have ahold of
Testing
First you confirm that the issue you are experiencing is the same as described here.
If this is the same issue. Then please provide the following information.
Device name (model)
Android version
The zoomRatioRange, this can be printed by inserting the following line in the set part of zoomRatio
if(value > 1f && zoomRatioRange.value != null) Log.d("STREAMPACK - ZoomRange:", zoomRatioRange.value!!.lower.toString() + " - " + zoomRatioRange.value!!.upper.toString()) - Which is also referenced in the link just below
As of now this issue has only been experienced on a single device, and not reproduced by any other devices. Which would not be considered a critical fault with StreamPack. But for instance if the scope of this issue was affecting all Nokia devices on Android 11 and above, it might have to get looked at.
TLDR: A single device have experienced a malfunction while using the zooming functionality. If this should be a bigger issue it should be looked at further.
If you come across this issue and you have a Nokia device, it would be nice if you can test this issue so we can get some data on how big the issue is.
Issue description
When zooming, in this case using the StreamPack demo-camera app - When setting the zoomRatio, the preview appears to stop displaying the camera view. With the error message
E/CameraDeviceCallback: Camera 0 is in error 4
At this point we dont know the scope of this issue. We want to figure out the cause of this issue. These are the candidates that we can come up with.
Testing
First you confirm that the issue you are experiencing is the same as described here. If this is the same issue. Then please provide the following information.
if(value > 1f && zoomRatioRange.value != null) Log.d("STREAMPACK - ZoomRange:", zoomRatioRange.value!!.lower.toString() + " - " + zoomRatioRange.value!!.upper.toString())
- Which is also referenced in the link just belowTests
Nokia T20
E/CameraDeviceCallback: Camera 0 is in error 4
Nokia 7.1 - Android 10
Works without any similarities to the issue on Nokia T20, and works without any errors.
Comment
This issue has been discussed here:
As of now this issue has only been experienced on a single device, and not reproduced by any other devices. Which would not be considered a critical fault with StreamPack. But for instance if the scope of this issue was affecting all Nokia devices on Android 11 and above, it might have to get looked at.