Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
1151 Discussions

How to release the android audio recording resource?

Zhen_L_
Beginner
716 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
716 Views

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

0 Kudos
Zhen_L_
Beginner
716 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.

0 Kudos
Reply