0
    public void setCamera(Camera camera) {
    	recorder.setCamera(camera);	
    } 
     
    public void setRecorderParams(int vbr, int abr, int asr, int ach, int vfr, int w, int h, int md, int mfs) {
        recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
        recorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
        recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
        recorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
        recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
        recorder.setVideoEncodingBitRate(vbr);
        recorder.setAudioEncodingBitRate(abr);
        recorder.setAudioSamplingRate(asr);
        recorder.setAudioChannels(ach);
        recorder.setVideoFrameRate(vfr);
        recorder.setVideoSize(w, h);
        recorder.setMaxDuration(md);
        //recorder.setMaxFileSize(mfs); 
    } 
     
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE