Hi all,

There are two functions could get and set preview fps ranges called 
getSupportedPreviewFpsRange()<http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPreviewFpsRange()>
 and setPreviewFpsRange(int, 
int)<http://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewFpsRange(int,%20int)>
. 
But in lots of devices including Nexus x, I could only set those specific 
fps pairs obtained from 
getSupportedPreviewFpsRange()<http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPreviewFpsRange()>.
 
For example, on Nexus S, I get [15000, 30000] using 
getSupportedPreviewFpsRange()<http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedPreviewFpsRange()>,
 
and the two parameters in setPreviewFpsRange(int, int) must be 15000 and 
30000, others will throw exception.
While in some devices like HTC Desire HD, S, etc., I could set any number 
within fps range. For example, on Desire HD, I get [1, 200000], and I could 
set [30000, 30000] into fps range, which means it will trigger the preview 
callback regularly, that's what I need.

So is there a way to get regular or fixed preview fps on all devices?

Thanks!
Y.H.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to