0
    } 
 
    private void initRecorder() { 
        //CamcorderProfile cpHigh = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH); 
        //mediaRecorder.setProfile(cpHigh); 
        mediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
        mediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
        mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
        mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
        mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
        mediaRecorder.setVideoEncodingBitRate(1500000);
        mediaRecorder.setAudioEncodingBitRate(8000);
        mediaRecorder.setAudioSamplingRate(8000);
        mediaRecorder.setAudioChannels(1);
        mediaRecorder.setVideoFrameRate(20);
        mediaRecorder.setVideoSize(640, 480);
        mediaRecorder.setMaxFileSize(10000000);
        mediaRecorder.setMaxDuration(100000);
        mediaRecorder.setPreviewDisplay(surfaceHolder.getSurface());
        mediaRecorder.setOutputFile("/sdcard/recorded_video.mp4");
    } 
 
    private void getViews() { 
        captureVideoButton = (Button) findViewById(R.id.captureVideoButton);
        playVideoButton = (Button) findViewById(R.id.playVideoButton);