How to display the video/audio of already joined members to newly joined member of the room. Following is my code but when i am trying to access the track property it is returning null.
room.participants.forEach(participant => {
console.log(`Participant "${participant.identity}" is connected to the Room`);
participant.tracks.forEach(publication => {
console.log(publication.track);
});
});
Getting Uncaught (in promise) TypeError: track.attach is not a function. When a new user joined the room, the existing members of the room are able to see the video of the newly joined member. But the newly joined member is not able to see the video of existing members.