I want to save the frame in the Arraylist code works but the problem is frames are skipping while capturing the video. CameraArrray is the arraylist and ModelFrameProcess is the model class which takes bytes array and save into the arraylist. I have fixed the framerate as 15.
@Override
public void onPreviewFrame(byte[] data, Camera camera) {
CameraArray.add(new ModelFrameProcess(data));
}
Sometimes frame rates are dropping up to 6 and sometimes it will take more than 20 frames. Any help ??