Video call keeps failing with error "AudioRecord: start() status -38"

429 views
Skip to first unread message

Karim Fikani

unread,
Aug 3, 2017, 7:36:45 PM8/3/17
to discuss-webrtc
Hi,

I have webrtc integrated in my project and it has been working great with all the devices that I support. Lately I had to support a new device with x86 arch (all the previous devices were armv7) and running android 6 and video calls in my app keep failing with the following errors:

AudioRecord.startRecording failed - incorrect state :1
AudioRecord: start() status -38

I googled and looked on stackoverflow and everybody mentioned that it has to do with the permissions.
I have granted the permissions (CAMERA, RECORD_AUDIO, MODIFY_AUDIO_SETTINGS) for Android M and I do have checks if the permissions are granted and there are no problems with that.

I am running the latest release M59.

What is driving me crazy is that AppRTC x86 build runs perfectly fine on that device except where twice I got the error mentioned above but a device reboot fixed it.

Any help would be greatly appreciated.

Thanks!

Karim Fikani

unread,
Aug 3, 2017, 7:53:16 PM8/3/17
to discuss-webrtc
Here is a more detailed log of the error:

E/AudioRecord: start() status -38
E/WebRtcAudioRecord: WebRtcAudioRecord: Start recording error: AudioRecord.startRecording failed - incorrect state :1
E/PCRTCClient: onWebRtcAudioRecordStartError: AudioRecord.startRecording failed - incorrect state :1
E/PCRTCClient: Peerconnection error: AudioRecord.startRecording failed - incorrect state :1
E/AudioRecordJni: StartRecording failed!
I/libjingle: (audio_device_impl.cc:1416): output: -1
E/libjingle: (voe_base_impl.cc:629): StartSend: Failed to start recording
E/libjingle: (webrtcvoiceengine.cc:974): webrtc: StartSend() failed to start recording (error=10028)
E/libjingle: (audio_send_stream.cc:135): AudioSendStream::Start failed with error: -1

br...@popinvideobanking.com

unread,
Aug 27, 2018, 9:56:32 AM8/27/18
to discuss-webrtc
We are seeing this problem too. Has anyone figured out a way to resolve this issue? To us it seems like a timing issue inside the WebRtcAudioRecord class. If we wait 30 seconds before doing another call then it works but if we do calls back to back on the same device within that time frame then we get this error and we have no audio transmitting until we restart the app.
Reply all
Reply to author
Forward
0 new messages