Re: [android-developers] Re: Running camera preview while recording video at the same time

2012-06-12 Thread deepak mamdapure
 I am new for android app development i am trying to render android UI
dynamically through xml parshinghow should i do this plz suggest
me.here is one xml


?xml version=1.0? MAIN_XML Mobile_Widget id=101 W_NAMEName
/W_NAME W_RENDERTEXT_BOX/W_RENDER /Mobile_Widget Mobile_Widget id=
102 W_NAMEMarried?/W_NAME W_RENDERCHECK_BOX/W_RENDER W_DEFAULT
Yes/W_DEFAULT /Mobile_Widget Mobile_Widget id=103 W_NAME
Description/W_NAME W_RENDERLONG_DESCRIPTION/W_RENDER /Mobile_Widget
/MAIN_XML


   (Deepak Mamdapure)

 You only live once, once is enough.

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

[android-developers] Re: Running camera preview while recording video at the same time

2012-06-07 Thread gjs
Hi,

Normally camera preview *IS* present during video recording, read the
video section of this carefully -

http://developer.android.com/guide/topics/media/camera.html

Regards

On Jun 6, 8:20 pm, DeveloperbyChoice tahasyed...@gmail.com wrote:
 I am still loking for the solution ? any solution yet ?







 On Tuesday, March 27, 2012 12:09:08 PM UTC-4, Qianqian Fang wrote:

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

  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


[android-developers] Re: Running camera preview while recording video at the same time

2012-06-06 Thread DeveloperbyChoice
I am still loking for the solution ? any solution yet ?

On Tuesday, March 27, 2012 12:09:08 PM UTC-4, Qianqian Fang wrote:

 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