-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mute audio/video when phone call received and picked #87
Comments
Hi @him2016 ! Thanks for reaching out. This scenario is not handled by the SDK. However, we are planning to add this feature to the video app to help demonstrate how to handle this scenario in a production collaboration video app. It will essentially respond to system phone call events using the Android PhoneStateListener class. In the meantime, here is a thread on stackoverflow that demonstrates how to handle this. |
Thanks for the prompt reply. I will try this. Also if possible, can you let me know by when it will be demonstrated in the sample app..? |
Yes, I'll make sure to close this issue once it has been implemented in the app. |
ok thanks.. looking forward to it.. |
Are there any updates on this question? What is the recommended way to handle this scenario on Twilio side? The only possible way I see is to implement custom AudioDevice from scratch and externally pause/resume it. |
Hi @VanKhulup . This one is still in our backlog for this app. However, it shouldn't be too bad to implement. Checkout this comment:
After receiving the phone call event from a broadcast receiver, you should then be able to mute the local audio and video tracks with logic like this... twilio-video-app-android/app/src/main/java/com/twilio/video/app/sdk/LocalParticipantManager.kt Line 77 in f883e8d
twilio-video-app-android/app/src/main/java/com/twilio/video/app/sdk/LocalParticipantManager.kt Line 107 in f883e8d
We are open for any pull requests from the community if anyone gets to this before we do 😃 |
Closing this issue as it will be covered in #212 |
I have been trying to integrate Twilio SDK in my app. I came across a scenario where I need to mute audio and stop video capture when phone call received. Does the SDK provide any callback and how do I handle it?
The text was updated successfully, but these errors were encountered: