Issue with Unpublishing Tracks – Remote Participants Still See Tracks in Large Meetings in openVidu V3 with liveKit single node

When the number of participants is small (e.g., 10 or fewer), if a participant unpublishes all their tracks, their videoTrack and audioTrack become null in the room.remoteParticipants list of other users. This works as expected, and new participants who join later cannot subscribe to the unpublished participant.

However, when the number of participants exceeds 20-30-40, …, unpublishing does not work as expected. The participant who unpublishes still has video and audio tracks in the room.remoteParticipants object for other users.

  • The unsubscribed signal does trigger for existing participants in the meeting, and they correctly unsubscribe from the unpublished participant.
  • However, when a new participant joins the room, they are still able to subscribe to the unpublished participant’s tracks, even though the tracks were unpublished earlier.
  1. Why does this issue happen only when the participant count is high?
  2. Why do existing participants correctly receive the unsubscribe event, but new participants can still subscribe to the unpublished user?
  3. Is there a way to force all remote participants, including new joiners, to update and recognize when a user has unpublished all their tracks?
  4. Could this be related to LiveKit’s track subscription management for scalability?
  5. What’s the best way to ensure that a new participant does not subscribe to an unpublished user?

Any insights or solutions would be greatly appreciated! Thanks in advance. :folded_hands:

Hello @mohamad_jalali. Did you developed your own application? Or is it related with the OpenVidu Call app?

Hello! Yes, I have developed my own application using LiveKit. It’s not related to the OpenVidu Call app.

i unpublish participant with room.localParticipant.unpublishTrack(this.videoLocalTrack, true) method, and then TrackUnsubscribed event trigger for all participant in meeting, I checked the logs on my own LiveKit server, and I saw an “unpublish” log there. but the participant who unpublishes still has video and audio tracks in the room.remoteParticipants object for other users.

Do you have a demo app which we can test to replicate the issue? How did you deploy OpenVidu?

We need a way to replicate your issue.