In My Application I am not using the flow used in
demo.easyrtc.com. I am NOT creating buttons to make performCall on button click.
For Video Call I just do the followings for each user:
1. set enable/disable options for video call
2. setRoomOccupantListener
3. joinRoom
4. easyrtc.easyApp
Inside my Listener:
I am doing perform call for each visitor easyrtcid.
performVideoCall(visitorEasyrtcid);
I want to put checks I need to have on this before performCall (easyrtc.call) :
1. Is the visitor easyrtcid is conncted to signaling server ?
2. Is The visitor easyrtcid is currently in call ? If not then only performCall (easyrtc.call).
3. Is the visitor easyrtcid is in same room ?
4. Remove current easyrtcid from list passed in listener ?
Example for Q.4:
ListenerFunction ( roomName, data, .. )
I want to remove current easyrtcid from the list 'data' so it must not be coming in list when next time listener hits. Otherwise the listener is called multiple times.
Thanks for Help.