green-rocket-44814
05/08/2025, 10:33 PMtall-airline-16756
05/08/2025, 10:33 PMtall-airline-16756
05/08/2025, 10:34 PMMutePublishedTrack
method. Here's an example of how you can mute a specific participant's track:
roomClient.MutePublishedTrack(context.Background(), &livekit.MuteRoomTrackRequest{
Room: roomName,
Identity: identity,
TrackSid: "track_sid",
Muted: true,
})
To mute all participants, you would need to:
• List all participants in the room
• Iterate through each participant and their tracks
• Call MutePublishedTrack
for each track you want to mute
Let me know if you need further assistance!
Sources: lksdk package - github.com/livekit/server-sdk-go/v2 - Go Packages | lksdk package - github.com/livekit/server-sdk-go/v2 - Go Packages