big-controller-60015
06/06/2025, 1:37 PMtall-airline-16756
06/06/2025, 1:37 PMtall-airline-16756
06/06/2025, 1:37 PMawait localParticipant.setMicrophoneEnabled(false);
This will mute the participant's microphone track if it's already published.
• For Android SDK:
localParticipant.setMicrophoneEnabled(false);
This will mute the microphone completely. Alternatively, you can use:
room.setMicrophoneMute(true);
This will zero the microphone audio data but still send data to remote participants (they won't hear anything).
Let me know if you need further assistance!
Sources: LocalParticipant | LiveKit JS Client SDK - v2.8.1 | setMicrophoneEnabled | setMicrophoneMutebig-controller-60015
06/06/2025, 1:39 PMtall-airline-16756
06/06/2025, 1:39 PMMutePublishedTrack
method from the RoomServiceClient. Here's an example:
res, err = roomClient.MutePublishedTrack(context.Background(), &livekit.MuteRoomTrackRequest{
Room: roomName,
Identity: identity,
TrackSid: "track_sid", # You need to get the track_sid of the microphone track
Muted: true,
})
Steps:
1. Retrieve the TrackSid
of the participant's microphone track using the GetParticipant
method.
2. Use the MutePublishedTrack
method to mute the track.
Note: Remote unmuting is disabled by default to avoid surprises. To enable it, select the "Admins can remotely unmute tracks" option in your project settings or configure room.enable_remote_unmute: true
in your config YAML if self-hosting.
Let me know if you need further assistance!
Sources: Managing participants | LiveKit Docs