Skip to content

How can I properly release microphone and camera resources when a participant hangs up a call in my WebRTC application? #5251

Answered by mekya
Mohit-3196 asked this question in FAQs
Discussion options

You must be logged in to vote

Update:

I think the easiest part to close streams and dispose recording icon, just call

webRTCAdaptor.closeStream()

If you want to disconnect from websocket and clear all peer connections, just call

webRTCAdaptor.closeWebSocket();

Another option is to turn off the camera for video stream. It turnoff the camera light.

webRTCAdaptor.turnOffLocalCamera()

On the other hand, recording icon is still there. I think it's whether about permission or microphone usage. I just need to check if it can be disposed completely.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mekya
Comment options

@Protti19
Comment options

Answer selected by Mohit-3196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants