Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646
1135 Discussions

How to release the android audio recording resource?

Zhen_L_
Beginner
143 Views

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

 

0 Kudos
2 Replies
He_Z_Intel
Employee
143 Views

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

Zhen_L_
Beginner
143 Views

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.

Reply