Can p5js access the camera on a jetson nano?

The jetson nano is a raspberry-pi like device and it can use raspberry pi cameras. It runs ubuntu and has a facility for running a webserver. I can execute p5js sketches fine.

However I cannot get the the video from the camera to show.
I know the camera works because this line in terminal puts up a live stream

gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink

How can I ask p5js to use the raspberry-pi camera on the jetson nano?


I just saw that you opened an issue on the GitHub repository :

I think that the repo is a better place to ask specific gstreamer details about the library. Anyway it can be useful to link the thread here! :wink:

Also are you asking for p5js or Processing? Because it’s two different languages and libraries…

I am using p5js. But processing is very similar.