MediaRecorder prepare failed

All your problems with Audio, Video and Images.

MediaRecorder prepare failed

Postby AndyTang » Sun Apr 11, 2010 3:08 pm

Hi, I'm new here. I have been trying to create a video capture app using the android emulator without much success. As far as I know and looking through all the samples and code on the internet, I must still be missing a step.

I've tried using this sample near the end of this thread made by JonPro:
http://www.anddev.org/viewtopic.php?p=24723#24723

and I've tried making my own but the media recorder would always fail on the prepare stage with the most unhelpful message of 'prepare failed'. I have no clue what I am missing. I seem to have the correct permissions and a SDCard is mounted according to the emulator. Should I be using a android SDK version other than 2.1?
AndyTang
Freshman
Freshman
 
Posts: 2
Joined: Sun Apr 11, 2010 2:59 pm

Top

Update 1

Postby AndyTang » Sun Apr 11, 2010 4:06 pm

looks like this code is needed now:
recorder.setCamera(camera);

But still no joy as the logs shows that:
'Failed to get camera(0x16b70) parameters'
when prepare() is called.

which still doesn't make sense as the preview is okay, but no recording!
AndyTang
Freshman
Freshman
 
Posts: 2
Joined: Sun Apr 11, 2010 2:59 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 11 guests