For some devices, previewing and recorded video framerates are very low.
This is an issue in AndroidX actually, but could be solved by setting .setTargetResolution() in Preview builder, instead of .setTargetAspectRatio() (or atleast allow it to configure though init options).
The issue registered for AndroidX: https://issuetracker.google.com/issues/223643510
When using .setTargetResolution() it chooses the closest available resolution, so you wouldn't need to manually calculate which aspect ratio to use.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For some devices, previewing and recorded video framerates are very low. This is an issue in AndroidX actually, but could be solved by setting .setTargetResolution() in Preview builder, instead of .setTargetAspectRatio() (or atleast allow it to configure though init options). The issue registered for AndroidX: https://issuetracker.google.com/issues/223643510
When using .setTargetResolution() it chooses the closest available resolution, so you wouldn't need to manually calculate which aspect ratio to use.