Use a live video stream (from WebRTC) in P5?

Hello, I’d like to run this WebRTC example (https://github.com/webrtc/apprtc) and manipulate the videos (local as well as remote) using P5. How do I work with the live stream video that’s not created by createCapture()? I thought I could just select the video element and manipulate in P5 but that’s not working.


This should give you a pretty good idea about how to work with webRTC. Specially check kaiido’s answer.

Wondering if this library might help: