Questions tagged [mediarecorder]

Mediarecorder is the Android class used for recording Audio and Video available since API Level 1. (For the Web-API, use the [web-mediarecorder] tag instead.)

994 questions
0
votes
1 answer

MediaRecorder.getMaxAmplitude returns always 0

I'm new in Java and my English isn't the best too. I want to write an app which meassures the Amplitude of a record. The app works except for the fact, that the amplitude is always 0. I have now read several websites, but didn't found an answer. I…
blublub12
  • 21
  • 2
0
votes
1 answer

Call recorder is not working on android 4.1.2

Call Recorder is recording on most of the devices but not working on samsung grand. Means recording is started on incoming or outgoing and records the sound from the selected source (mic etc) but further device will stop to record the sound (could…
ConceptSpecs
  • 61
  • 2
  • 9
0
votes
1 answer

Sample Rate in Android Audio Record class and MediaRecord class

i want to know what is the difference between setting audio sample rate in Android AudioRecord class and Media record class? In audio record class we set sample rate while creating an object of the class like recorder = new…
Talha Malik
  • 1,392
  • 3
  • 19
  • 41
0
votes
1 answer

How to prevent corrupted files?

I am making and recording application. And the big problem for me is that when user click the record button( i am using custom recorder, not default intent) and if they hit it again quickly or MediaRecorder is going to throw exception or video file…
SeemsIndie
  • 520
  • 1
  • 4
  • 14
0
votes
2 answers

Media recorder setprofile() is not working for nexus phone

i have tested my code on Samsung tablet and note but same code is not working on nexus. i know nexus have only front camera and camera is getting open but cliking on start recording button it get crashed.... i checked it through error on…
0
votes
1 answer

Android MediaRecorder RuntimeException on start() / corrupted video

I have Activity with MediaRecorder which works on android 2.3.6. Now I trying it on Samsung Galaxy S2 (4.044) and mRecorder.start() give RuntimeException with all CamcorderProfiles. Its works only with 480P, but video is corrupted with lines. I…
0
votes
2 answers

MediaRecorder - record calls application

im trying to develope application that recording calls. when im recording the output sound sounds very wired - electronic sounds instead the other person voice. here is my code: public class MainActivity extends Activity implements OnClickListener…
Gladi
  • 395
  • 3
  • 15
0
votes
1 answer

Null Exception when recording using mediaRecorder

I am doing an call recording application. My problem is that the recording works fine when a call is received but it does not stop recording. My code and the logcat are below. Any form of help is greatly appreciated. My code: public class…
Chewy
  • 23
  • 1
  • 4
0
votes
1 answer

how to recording pause in android

i am developing an application in android to record voice will generate a mp3 file,but my problem is to pause while recording with Android MediaRecorder class. Can any body help me? Any kind of help appreciated Thanks in advance
SOUMYA
  • 1
  • 1
0
votes
0 answers

Android MediaRecorder start failed on 4.0.4

I get this code form MediaRecorder start() method. The file was created in the right place on SD card, the preview is started, etc... When I commented out this method from my code, all works fine. Here is my CamcoderPreview class: public class…
0
votes
1 answer

Android crashes when record HD video Galaxy SII

when trying to set MediaRecorder with following settings fps > 15, resolution 1080p, on method recorder.prepare() device hangs, and then Android crashes. Can Galaxy SII record video with 1080p resolution? Thanks.
Taras
  • 2,446
  • 3
  • 29
  • 60
0
votes
1 answer

Auto reset Video recording Android

I am working on a application where I need to record video on a button click of predefined lenth say 15 sec. After 15 sec I want to reset the MediaRecorder automatically without manual intervation My code is here. public void initMediaRecorder(){…
kendrelaxman
  • 439
  • 2
  • 8
  • 18
0
votes
1 answer

Android 2.3 "start failed -2147483648" mediaRecorder error

On Android 2.2 the code works fine on 2.3 it crashes at MediaRecorder.start() though. The log and the code itself is below. As you see it doesn't give much information, log gives "start failed -2147483648" message. I've been trying for ages and…
spirytus
  • 9,438
  • 12
  • 52
  • 74
0
votes
3 answers

Android: Recording audio using MediaRecorder

I am trying to do a function in my app that records the sound recording then do some sound analysis after I got the sound recording. I would like to use MediaRecorder library as I need the sound file and it seems to be a simpler option. However, I…
Sakura
  • 809
  • 4
  • 12
  • 27
0
votes
2 answers

android MediaRecorder.onInfoListener error codes

I am using MediaRecorder.onInfoListener() and I'm frequently getting error number 802 with varying extra information (on a Samsung Galaxy 1), but I don't know what to do with it as it isn't documented in the documentation. What is its meaning?
ticofab
  • 7,169
  • 11
  • 44
  • 81