twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
460 stars 178 forks source link

Not able to stop Twilio audio #510

Closed gurupatel closed 4 years ago

gurupatel commented 4 years ago

I want to stop/unstop Twilio audio same as zoom app does. We are asking our user to enable/disable internet audio permission same as zoom, so for that we need to stop whole audio session if it is not enable & unstop if it is enable by our users.

So if audio session (Internet audio) is not enable by user, then user should not able to hear any audio from any participant connected in room & also audio should not go from device to other participant.

Please find the attached screen shot for more clarity.

WhatsApp Image 2020-06-23 at 12 12 20 PM

piyushtank commented 4 years ago

@gurupatel I am assuming you are not using CallKit in your app. Have you tried using DefaultAudioDevice.enabled property? It stops and starts audio unit on demand. Try using it and let me know how it goes.

gurupatel commented 4 years ago

@piyushtank Working perfect, thanks for fast & proper reply. You can close this issue.