quickblox api working fine for calling.I want to record the call so there is any method for recording?
You can use
MediaRecorder myAudioRecorder = new MediaRecorder();
when you receive call you can start recording and on call end you can stop recording.
for more information go to this link
Related
I am trying to create an audio recorder app that records audio and should save audio only when users click on the save button. But the problem I am facing is that as soon as recording stops it saves automatically. And if I try to set setOutputFile to null then the app crashes.
Code
mediaRecorder = new MediaRecorder();
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mediaRecorder.setOutputFile(AudioSavePathInDevice);
Does Anybody know how to save that audio recording manually?
I am trying to record voip call of what's-app and some how able to trigger recording at the same time when an VOIP call is ongoing .
Trying the Below code to record the VOIP Call
recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_COMMUNICATION);
recorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(audiofile.getAbsolutePath());
try {
recorder.prepare();
} catch (IllegalStateException e)
{
e.printStackTrace();
}
recorder.start();
but for VOIP call whats app is also using AudioRecorder with the same Audio Source and whoever either my app Recording service or whatsapp able to get an instance of recorder will run perfectly and other app stucked due to Audio Resource Busy . Any suggestion how will i record the Voip Call
I want to implement call recording in my one app, So I have used below questions for reference:
Android Recording Incoming and Outgoing Calls
How To Record Incoming Call in android programmatically?
I am using below code to record a call
recorder.reset();
recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
But I have also try to use different audio source and output format but it's not recording properly
its recording one-sided call sometimes, and when changing to voice_call and voice_communication its not recording calls at all
In some thread, I found that in some devices it's not working properly but I found some apps in play store which works quite good
https://play.google.com/store/apps/details?id=com.appstar.callrecorder
I have an AudioRecorder app that runs in a service smoothly, but when I try to use any Recorder app (Video/Voice Recorder), it gives the following error
Voice: Unable to start a new recording. Other applications are already recording
Video: Recording failed
a similar issue was raised here
I want to know if there is any possible way to set a service to listen to when a MediaRecorder.start() is being called by ANY app or even when the object is created.
Thanks.
I need to record an audio using inbuilt audio recorder in android and upload that file to server. i recorded an audio using audio recorder intent but i could not able to get the onActivity Result. can anyone help me please? I am using Samsung Galaxy S.
When I preform an activity as you have stated, I always do the higher of the two then the latter, if both return successful then I integrate the two into 1 Activity. Attempt this test:
1: Record and save Audio to SD (to ensure that your recording is present) then
2: (Using a second Activity) Attempt to upload that File to your server.
If the test is successful, integrate the 2 activities. I hope this helps as you have not provided any code to be reviewed.