Skip to content Skip to sidebar Skip to footer

Mediarecorder Problems On Starting Video Capturing On Android

I'm trying to develop an App that amongst other things can record videos from its User. So I need to capture the video with the front facing camera if there is one. I build a camer

Solution 1:

I'm answering my own question to help everybody who has the same problem. The error was so stupid that it's a little embarrassing to admit it.

On preparing the audio and video sources I committed the wrong surface.

I have different SurfaceViews and committed the surface of the wrong SurfaceView to the MediaRecorder. This resulted in the attempt to connect two different sources to the surface what is not possible and leads to a shutdown of the Media Server.

I tested my App on a GalaxyPad 10.1 and the video recording works fine. I tested the App on the Dalvik VM and the Video is black/white but also works.

I hope this helps.

Solution 2:

Did you add the following permissions to your manifest?

<uses-permissionandroid:name="android.permission.CAMERA" /><uses-permissionandroid:name="android.permission.RECORD_AUDIO" />

Post a Comment for "Mediarecorder Problems On Starting Video Capturing On Android"