How do Remote tracks/streams and participantIds work?


#1

Hi, I am implementing lib-jitsi-meet in a react application and am having some challenges understanding how the remote streams work.

I have lib-jitsi-meet up and working, can connect create/join rooms etc…

I have a callback for JitsiMeetJS.events.conference.TRACK_ADDED and am attempting to setup and attach the streams to video and audio elements when the remote tracks change.

The part I’m not understanding is I seem to get multiple video and audio streams for the same participantId. Is that the correct behavior?

And if so, not sure what to do when there are multiple video streams for the same participant.