Friday, August 12, 2011

[android-developers] Restarting onPreviewFrame

when using the Camera.PreviewCallback implementation the
onPreviewFrame is called without problem after initializing camera and
starting preview (Camera.startPrevew()). The problem is if I make a
video recording using MediaRecorder onPreviewFrame stops being called
and cannot be restarted after video recording.

I understand that when using MediaRecorder to record video it stops
the Camera.PreviewCallback, but why can't it be restarted after?

I have tried resetting the camera preview callback
(setPreviewCallback(callback)) and restarting startPreview, but while
I have a preview there is no call to onPreviewFrame.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment