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?
doesn't seem to do the job.
If i call
.. 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.