Spout for P5.js?

I every one.
I began to learn Processing few weeks ago, Quickly I discover there is something called P5.js.
I want to develop tools for interactive and procedural VJing. I would like to know if there is something like Spout, or a protocol, to work with video stream.

Thanks a lot.

not sure if there’s an easy way to get video (from a stream / source?), if it’s from file there’s the createVideo() https://p5js.org/reference/#/p5/createVideo, you might have some luck looking into https://p5js.org/reference/#/p5/createCapture, that should let you grab a videostream from a webcam.

Spout shares GPU textures between applications (or at least tries to :smile: ). I doubt you’ll find anything for P5.js that does that. But you might be able to send via webrtc?

Thanks for your answer…maybe webrtc could be a solution.
Don’t think createVideo(); is the tool to properly send the canvas to another software such as resolume.