`mutePublishedTrack` having no effect Code in rep...
# server-api
r
mutePublishedTrack
having no effect Code in reply
Copy code
const roomService = getRoomService();

  const participants = await roomService.listParticipants(meetingId);

  for (const participant of participants) {
    if (participant.identity === meeting.hostId) {
      // Skip muting the host
      continue;
    }

    await roomService.mutePublishedTrack(
      meeting.id,
      participant.identity,
      participant.sid,
      true
    );

    console.log(`Muted participant: ${participant.identity}`);
  }
r
Try passing
trackSid
🙏 1
r
you’re a lifesaver
➕ 1