Hi,

I am not able to see video preview. Here is is how I set up the
MediaCorder, before I fire it up:

                mrec.reset();
                mrec.setVideoSource(MediaRecorder.VideoSource.CAMERA);
                mrec.setAudioSource(MediaRecorder.AudioSource.MIC);
                mrec.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);

                mrec.setVideoEncoder(MediaRecorder.VideoEncoder.DEFAULT);
                mrec.setVideoSize(320, 240); // QCIF
                mrec.setVideoFrameRate(15);

                mrec.setOutputFile(videofile.getAbsolutePath());
               mrec.setAudioEncoder
(MediaRecorder.AudioEncoder.AMR_NB);
                mrec.setPreviewDisplay(surface.getHolder().getSurface());

Am I missing something?

Thanks in advance.

sreeram


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to