steep-balloon-41261
12/01/2022, 7:30 AMacoustic-engineer-41666
12/01/2022, 7:44 AMstraight-arm-32989
12/01/2022, 7:47 AMstraight-arm-32989
12/01/2022, 7:47 AMmagnificent-art-43333
12/01/2022, 8:03 AMstraight-arm-32989
12/01/2022, 8:05 AMstraight-arm-32989
12/01/2022, 8:05 AMmagnificent-art-43333
12/01/2022, 8:07 AMbrainy-kilobyte-44210
12/01/2022, 8:09 AM// mute/unmute participant's tracks
roomClient.MutePublishedTrack(context.Background(), &livekit.MuteRoomTrackRequest{
Room: roomName,
Identity: identity,
TrackSid: "track_sid",
Muted: true,
})dry-elephant-14928
12/01/2022, 8:26 AMcanPublish to false for viewers, that will disallow them from publishing to the room. You can see the permissions that are available in the token grants here.
In order to allow them to publish later on, you'd want to call the server API UpdateParticipant and give them a new permissions field with canPublish set to true.straight-arm-32989
12/01/2022, 9:33 AMstraight-arm-32989
12/01/2022, 11:12 AMacoustic-engineer-41666
12/02/2022, 6:54 PMcanPublish field set to true