Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

How to release the android audio recording resource?

I notice that, after I end an on going WebRTC video p2p call.

The microphone resource is not getting release.

For example, when I try open up any voice note recording app. The recording simply doesn't work. Whatsapp cannot record a voice note. wechat cannot, qq cannot etc, google voice search doesn't work etc.

Everything will work if I manually kill my app.

So my question is, after I know for sure that my call is ended. How do I release the audio recording resource?

localStream.disableAudio();

localStream.close();

doesn't seem to do the job.

Thanks

 

Tags (2)
0 Kudos
2 Replies
Highlighted
Employee
1 View

Hi Zhen, thanks for reporting

Hi Zhen, thanks for reporting this issue, we will check it. I'll keep you posted on the process.

0 Kudos
Highlighted
Beginner
1 View

If i call

If i call

PeerClient.unpublish()

.. onSuccess -> peerClient.disconnect(); localStream.close()

Microphone seems to get released properly after i do that.

I couldn't reproduce the original issue very very reliably. So not sure to what extend calling disconnect and unpublish addresses the issue.

0 Kudos