Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit preview fps range in android for camera?

Is it possible to limit fps range in android camera.. tried to change the values in .setPreviewFpsRange()... but frame rate are not changed.. it comes continuously 30 frames per second

like image 894
Binu Avatar asked Mar 17 '14 14:03

Binu


1 Answers

You can use public List<int[]> getSupportedPreviewFpsRange () to check what FPS range supported by your device. Here is mine:

preview-fps-range-values=(10000,10000),(15000,15000),(15000,30000),(30000,30000);

so if I want to change the fps to 15, I can setPreviewFpsRange(15000,15000).

like image 98
yushulx Avatar answered Nov 14 '22 13:11

yushulx