Hi John Im looking at the web cam widget in the GRBL workspace and

Hi John

Im looking at the web cam widget in the GRBL workspace and wanted to know the best library you used on the R Pi to stream to the widget… It looks like WebRTC but its not self evident to me which library is best to use on the R Pi to make this work…

On yours do you use the same Pi as the you run the SPJS

You can checkout my widget-cam that I never quite finished, but did get working pretty well. https://github.com/chilipeppr/widget-cam

When you run the widget it tries to connect via SPJS to your Raspberry Pi and actually install uv4l for you. uv4l is the best library I found for webrtc on the raspicam. It tries to use mp4 encoding on raspi so you get the best compression and the lowest CPU usage in your browser to decode.

I think Frank took a different approach in his cam widget where he may have also used uv4l but was mjpeg streaming, or he was using another mjpeg streamer. That can work as well, but I really wanted mp4 decoding in browser since when you’re running CP on a full job the 3d viewer is heavy on the browser and I didn’t want the video taking up more than 5% cpu.

I’m using @Frank_Herrmann ​ Cam widget available in the http://Chilipeppr.com/xpix workspace.