I came across this:
https://shiffman.net/processing.org/udp/2010/11/13/streaming-video-with-udp-in-processing/
And this topic: