cp2004 / OctoPrint-CameraStreamer-Control

Embed WebRTC (& more) streams provided by camera-streamer in OctoPrint
GNU Affero General Public License v3.0
17 stars 0 forks source link

Doesn't work with go2rtc webrtc streams #7

Closed puterboy closed 3 months ago

puterboy commented 3 months ago

The plugin doesn't seem to be able to handle mp4 webrtc streams generated by go2rtc streamer.

The webrtc url I have is of form:

http://mypi/api/stream.mp4?src=picam_h264

The stream plays just fine in my browser or in apps like mplayer and vlc. But it fails to display in Octoprint-CameraStreamer-Control (where I selected 'WebRTC' as the Preferred Video Mode)

Any suggestions on troubleshooting this and making it work?

cp2004 commented 3 months ago

That is because this plugin is "camera streamer control". It is designed for & only works with camera streamer, not go2rtc.

A plugin for fully supporting go2rtc would be useful, but in the meantime use the iframe webcam plugin.