Helly there.. i need help ( . im trying to record video from camers
( yeah, im tested it in emulators v2.1 , but i have phone for full
tested )
here my code

String name = Environment.getExternalStorageDirectory()+"/
FileIsCreatedButSizeisNULL.mp4";

        recorder = new MediaRecorder();
          recorder.setPreviewDisplay(holder.getSurface());
                ///recorder.setCamera(camera);
                 recorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
        
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
        
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
        
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
        
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP);


                     recorder.setMaxDuration(10000);
                     recorder.setVideoSize(320, 240);
                         recorder.setVideoFrameRate(15);

                         recorder.setOutputFile(name);
                         recorder.prepare(); ////////// hereeeeeeee exception  -
IOException prepare failed
                         recorder.start();

        alert("work ?");


what wrong ?? why i have always  prepare failed (((
in dev guides i reading about  - record not working in emulators - but
on real phone this erorr too

Please help .. i need help  ^(((((((

P.s. regards, Peter

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