Hi! I'm new to easyRTC and this forum so sorry if this question doesn't belong here.
I'm making an app that has two kind of rooms. A "waiting room" where you can establish p2p connections with other users (already got working) and multiparty rooms where you connect with every user connected to that group. I want it to be automatic so when you access a room the app calls all the other users for you, without having to push anything. FIrst I implemented it with a button you can click and it calls everyone in the rooms and it works fine but it is not working if in my function for setRoomOccupantListener I put something like
for(var i in data) {
var listItem = document.createElement('li');
listItem.innerHTML = easyrtc.idToName(i);
listElement.appendChild(listItem);
listSize = listSize + 1;
//to avoid calling someone I'm already talking to and
//to avoid users from calling each other at the same time
if(easyrtc.getSlotOfCaller(i) == -1 && i < selfEasyrtcid) {
performCall(i);
}
}
(data is the list of users connected to the room). The function performCall is the one I use for calling users in other moments and it works perfectly fine (I use easyrtc.call in it). The function is being called nevertheless the call is not being made.
I'll be happy to provide some more information if you can help me. Thank you very much,
Emilio.