mryel00 / spyglass

A simple mjpeg server for Picamera2
GNU General Public License v3.0
68 stars 15 forks source link

feat: add WebRTC stream #84

Open mryel00 opened 1 month ago

mryel00 commented 1 month ago

This adds a new endpoint /webrtc. Spyglass doesn't provide an interface itself yet, but you can have a look into the implementation of MediaMTX: https://github.com/bluenviron/mediamtx/tree/main/internal/servers/webrtc The endpoint can also be used with the MediaMTX client of Mainsail.

The negotiation follows the same method of MediaMTX defined by the whep protocol, with a single HTTP exchange, also described on this website with a flow diagram as method one: https://www.meetecho.com/blog/whip-whep/