Added a workaround for low framerate issue on Nexus 4 (#959)

* Added a workaround for low framerate issue on Nexus 4

* Move setRecordingHint to general camera configuration

* change the location of setRecordingHint
This commit is contained in:
Frank 2018-02-23 23:26:38 +08:00 committed by Sean Owen
parent c8da0c1a94
commit c3d649f6ab

View file

@ -179,6 +179,10 @@ final class CameraConfigurationManager {
CameraConfigurationUtils.setMetering(parameters);
}
//SetRecordingHint to true also a workaround for low framerate on Nexus 4
//https://stackoverflow.com/questions/14131900/extreme-camera-lag-on-nexus-4
parameters.setRecordingHint(true);
}
parameters.setPreviewSize(bestPreviewSize.x, bestPreviewSize.y);