Okay, I gave it a try, and fixed the issues happened by API changes. Now the app running, however, I can’t send or get frames from or to Processing. What I get is always a blank frame.
Since I don’t know really much about Processing under the hood, I cannot find what cause the issue. If someone wants the modified source code to take a look into, let me know!