setIncomingAudioEnabled
Enables or disables the reception of incoming audio tracks for all or specified participants.
This method allows selective control over whether the local client receives audio from remote participants. It's particularly useful in scenarios such as livestreams or group calls where the user may want to mute specific participants' audio without affecting the overall session.
Parameters
enabled
true
to enable (subscribe to) incoming audio, false
to disable (unsubscribe from) it.
sessionIds
Optional list of participant session IDs for which to toggle incoming audio. If null
, the audio setting is applied to all participants currently in the session.