private void OnRoomUserUpdate(string roomId, ZegoUpdateType updateType, List <ZegoUser> userList, uint userCount) { Debug.Log("OnRoomUserUpdate:" + "room_id:" + roomId + "\n zego_update_type:" + updateType + "\n zego_user count:" + userList.Count + "\n =:" + userCount); for (int i = 0; i < userList.Count; i++) { Debug.Log("OnRoomUserUpdate:" + "user_id:" + userList[i].userID + "\n user_name:" + userList[i].userName); } }
private void OnRoomStreamUpdate(string roomId, ZegoUpdateType updateType, List <ZegoStream> streamInfoList, string extendData) { Debug.Log(String.Format("OnRoomStreamUpdate1 room_id:{0} zego_update_type:{1} extendData:{2} streamInfoCount:{3}", roomId, updateType, extendData, streamInfoList.Count)); for (int i = 0; i < streamInfoList.Count; i++) { Debug.Log(String.Format("OnRoomStreamUpdate2: user_id:{0} user_name:{1} stream_id:{2}", streamInfoList[i].user.userID, streamInfoList[i].user.userName, streamInfoList[i].streamID)); } }