livekit / client-sdk-swift

LiveKit Swift Client SDK. Easily build live audio or video experiences into your mobile app, game or website.
https://livekit.io
Apache License 2.0
176 stars 85 forks source link

Mute without stopping audio recording #422

Open daveleroy opened 1 week ago

daveleroy commented 1 week ago

The behavior I am after is similar to discord where toggling mute does not disable recording just stops broadcasting voice. Is there a way to achieve this in live-kit or is it something you would consider adding?

Currently I have tried calling LocalTrackPublication.mute(true)but it will stop the audio capture which causes iOS to lockup for a split second (this is especially noticeable on bluetooth devices when playing a video in the background).

hiroshihorie commented 1 week ago

This is intended behavior to stop the mic indicator. But maybe we can have an option for this.