nice-room-70150
10/10/2025, 8:26 PMtall-airline-16756
10/10/2025, 8:26 PMtall-airline-16756
10/10/2025, 8:27 PMsetMicrophoneEnabled method on the LocalParticipant class. Here’s a quick example:
await room.LocalParticipant.setMicrophoneEnabled(false);
• Another way is to use the SetMute method on the local audio track:
localAudioTrack.SetMute(true); // true to mute, false to unmute
2. Muting Remote Participants' Microphones:
• Just a heads up, the Unity SDK doesn’t support directly muting remote participants’ microphones from the client side. To mute someone remotely, you’ll need to use the server-side MutePublishedTrack API. This means some server-side setup and the right permissions are necessary.
• Also, make sure remote unmuting is enabled in your project settings if you want to allow that later on.
If you want to explore this further, the LiveKit Unity WebGL SDK sample application is a great resource to check out. Feel free to reach out if you need any more help—I’m here to support you!
Sources: Real-time audio and video in the Metaverse | Runtime/Scripts/Proto/Track.cs | src/room/participant/LocalParticipant.ts | Camera & microphone | LiveKit Docs | Managing participants | LiveKit Docs