This simple code:
Camera.Parameters params = currentCamera.getParameters();
params.setPreviewFpsRange( 10000, 15000 );
currentCamera.setParameters( params );
does not work on my Nexus 4 (or my Motorola Atrix), despite the allowed values being between in the allowed range of 5000 to 120000.
When I try to use any min or max values different than 5000 and 120000, respectively, I get:
setPreviewFpsRange(const android::QCameraParameters&): error: FPS range
value not supported
which is silly. Also, I tried this code on my older Motorola Atrix (which shows a valid fps range to be between 10000 and 30000) and it also doesn't work. Anything that can be done?
From my searching on the topic I have found that a) there is very little material on the topic anywhere, and b) it may be the case that this functionality is simply unsupported by some platforms. It's a bit strange that Google's current flagship phone, the Nexus 4, doesn't support it, though...