HI,
i am really stuck with media recorder. i am trying to record a video.
it is working to record audio and i can play the recorded audio as
well.the code sample for recording audio is:

             recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
             recorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP);
             recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

but when i try for video it gives prepare failed error.
                  recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
                  recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
                  recorder.setOutputFormat
(MediaRecorder.OutputFormat.THREE_GPP);
                  recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
                  recorder.setAudioEncoder
(MediaRecorder.AudioEncoder.AMR_NB);
rest of code is same i only added 2 lines to record the video.
i have tried everything but i am not able to debug it, it is really
urgent, please help to find me the error.
do i need to make any changes in menifest. i am working with android
1.6 window vista. is it issue with emulator.
Thanks



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