Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting runtime exception on MediaRecorder.start #48

Open
UnnikrishnanBhargavakurup opened this issue Jul 9, 2017 · 2 comments
Open

Comments

@UnnikrishnanBhargavakurup

I'm getting the following error could you please help me fixing it?

Call recorder:: RecordService startRecording MediaRecorder: start failed: -2147483648 Call recorder:: Exception System.err: java.lang.RuntimeException: start failed. System.err: at android.media.MediaRecorder.start(Native Method) System.err: at com.callrecorder.android.RecordService.startRecording(RecordService.java:226) System.err: at com.callrecorder.android.RecordService.onStartCommand(RecordService.java:90) System.err: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3010) System.err: at android.app.ActivityThread.-wrap17(ActivityThread.java) System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1442) System.err: at android.os.Handler.dispatchMessage(Handler.java:102) System.err: at android.os.Looper.loop(Looper.java:148) System.err: at android.app.ActivityThread.main(ActivityThread.java:5417) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Call recorder:: RecordService terminateAndEraseFile

Thanks,
Unnikrishnan B.

@UnnikrishnanBhargavakurup
Copy link
Author

It's working form me when i changed MediaRecorder.AudioSource.VOICE_CALL to MediaRecorder.AudioSource.MIC

I'm using LG Nexus 5 is there any workaround to handle different phones.

@ozencelik
Copy link

ozencelik commented Oct 18, 2018

Thanks @UnnikrishnanBhargavakurup
Your solution worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants