views:

1833

answers:

4

Hi

Does anyone got the video recording sample for android , if yes could you please share the same

Thanks Vish

+1  A: 

You record audio and video using the same MediaRecorder class. It's pretty simple. Here's an example.

Drakosha
A: 

@Drakosha: There are subtle bugs in the video implementation in MediaRecorder that cause segmentation faults for unpredictable reasons. I suspect this is why @Vishnuparsad was posting this question in the first place.

rabidsnail
Then he should have mentioned it :)
Drakosha
A: 

yes i tried that sample + lots of other sample from web . so far not able to recoed the video now i cant even play the video from url . able to play from sdcard but not from the url

i dont know what i am i doing wrong been struguling for last one week on this

Thks Vish

vishnu
A: 

Check out this Sample Camera Preview code, http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html . this would help you in devloping video recording code for video preview. create MediaRecorder object and set video recording parameters..

piyushnp