hi

I am working on a real-time video processing project. I used
setPreviewCallbackWithBuffer() and display both the preview image and
the processed image on SurfaceViews. Now, I'd like to record video at
the same time. I read from some posts that the video recording
involves low-level io that is not in conflict with the preview buffer.

I took some sample code from the second post of this link to do the
video recording:

http://stackoverflow.com/questions/1817742/android-video-recording-sample

however, after merging it with my camera
setPreviewCallbackWithBuffer() code, I kept getting "MediaRecorder:
start called in an invalid state 4" when I tried to call mrec.start().
Both the initRecorder() and prepareRecorder() ran fine when the
surface is created.

Anyone know what might be causing this error? the MediaRecorder object
does share the same camera object that is used for buffered preview.

thanks

Qianqian

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to