How to get live user info

0 votes

Hi,

I want to Display Number Of Users currently played in the room

so for that, I wrote this code
 

public void onGetLiveRoomInfoDone (LiveRoomInfoEvent eventObj)
{
   Log ("onGetLiveRoomInfoDone : " + eventObj.getResult());
 
  if (eventObj.getResult () == WarpResponseResultCode.SUCCESS) {
  print ("room id" + eventObj.getData ().getId());
  print ("joined users==" + eventObj.getJoinedUsers());
}


It displays onGetLiveRoomInfoDone : 0
                room id1269678926
                joined users===

so I got joined users null even if there is one user in the room why?
Please help
thanks
asked Apr 24 in AppWarpS2 by mkc110891 (16 points)
Hi, can you please help me?
Thanks.
Hi,
I have forwarded this to my dev team, I will update you ASAP on this.

Thanks.
Hi Rajeev,
Is there any update?

1 Answer

0 votes

Hi,

We have checked this on our side and it is working fine.

The log in your code is not printing anything because the object(eventObj.getJoinedUsers()) is an array and to print this you need to iterate in a loop and print single element as follows:

eventObj.getJoinedUsers()[0]

Please let me know if you have any further query, I will be happy to help you.

Thanks.

answered Apr 27 by rajeev.etc (1,558 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com