Participant tracks not remoted when joining

So i started with the example gave by the git (example that have some issues). My problem is that when a new participant joins the room, the first one who created it does not remote a new track. The event “USER_JOINED” is triggered but not “TRACK_ADDED”.
On the other side, for the participant, everything is working fine.

I’m using meet.jit.si as server target :

var options = {
hosts: {
domain: ‘meet.jit.si’,
muc: ‘conference.meet.jit.si’,
},
bosh: “https://meet.jit.si/http-bind?room=”+roomName,
clientNode: ‘http://jitsi.org/jitsimeet’,
}

I also noticed that the issu does not occure when i’m using the siteweb meet.jit.si as the new participant. It’s only when i use my own code in 2 different pages.

Here some code for the most part it’s the same as the example :

function onConnectionSuccess() {

console.log(“ROOM JOINED”)
room = connection.initJitsiConference(roomName, confOptions);
room.on(JitsiMeetJS.events.conference.TRACK_ADDED, onRemoteTrack );//not triggered
room.on(JitsiMeetJS.events.conference.TRACK_REMOVED, track => {
console.log("====TRACK REMOVED====");
console.log(track);

for(let i = 0; i < track.containers.length; i++){
  track.containers[i].remove();
  track.detach(track.containers[i]);
}

track.dispose();
});
room.on(
JitsiMeetJS.events.conference.CONFERENCE_JOINED,
onConferenceJoined);
room.on(JitsiMeetJS.events.conference.USER_JOINED, (id) => {
console.log("====USER===="+id) //Triggered Here
remoteTracks[id] = ;
});
room.on(JitsiMeetJS.events.conference.USER_LEFT, onUserLeft);
room.on(JitsiMeetJS.events.conference.TRACK_MUTE_CHANGED, track => {
console.log(${track.getType()} - ${track.isMuted()});
});
}

Thank you in advance for your help.

Hello,

I’m wondering why you add the roomName in the bosh url ? (options, first piece of code)

Hey, if i dont add it, it’s like it doesn’t know where to go and returns me a “Connection Failed !”