Hi,
I am trying to run MediaRecorder code snippet from Develope's
documentation, on emulator at this time:
try {
                                        MediaRecorder recorder = new 
MediaRecorder();
                                        
recorder.setAudioSource(MediaRecorder.AudioSource.MIC); - doesn't
work at all
                                        
recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
                                        
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
                                        
recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
                                        recorder.setOutputFile("/sdcard/cap");
                                        recorder.setVideoSize(176, 144);
                                        recorder.setVideoFrameRate(10);         
        
                                        
//recorder.setPreviewDisplay(surfaceHolder.getSurface());
                                        
//panelPreview.setVisibility(LinearLayout.VISIBLE);

                                
                                recorder.prepare();
                                recorder.start();
                        }
                        catch (Exception e)
                        {
                                
                                Log.d("!! EXCEPTION: ", e.getMessage());
                        }

i have the following errors on "recorder.prepare()" :

02-06 09:46:56.879: WARN/MediaProfiles(34): could not find media config xml file
02-06 09:46:57.599: ERROR/CameraInput(34): Unsupported
parameter(x-pvmf/media-input-node/cap-config-interface;valtype=key_specific_value)
02-06 09:46:57.599: ERROR/CameraInput(34): VerifiyAndSetParameter
failed on parameter #0
02-06 09:46:59.219: WARN/AuthorDriver(34): Video encoding bit rate is
set to 320000 bps
02-06 09:47:01.879: DEBUG/CameraHardwareStub(34): initHeapLocked:
preview size=320x240
02-06 09:47:01.929: ERROR/CameraInput(34): No surface is available for display
02-06 09:47:01.929: ERROR/AuthorDriver(34): Command 13 completed with error -1
02-06 09:47:01.929: ERROR/MediaRecorder(282): prepare failed: -1

What is "media config xml " file - do i need special config file for
MediaRecorder ? docs don't mention it?
What is the meaning of  "No surface is available for display"  error message?

Thank you,
-V

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