We are developing an MS-Teams in-meeting tab-app [Side panel].
The app is supposed to selectively block incoming audio using toggleIncomingClientAudio() .
However, if the user has muted themselves the mic button changes to speaker button as below:
Clicking on this button shows this pop-up
If the user clicks the turn-on button, both the speaker and mic gets enabled.
This enables incoming audio again (which we had blocked earlier).
Is there a way to prevent this ?
This question is on similar lines but the use case is different than ours.
We could try blocking audio again, but we couldn't find a way to listen to mute/unmute status of teams.