soup: Add a SoupServer sink
Submitted by Brendan Long
Link to original bug (#711271)
Description
Created attachment 258778
Patch to add gstsouphttpserversrc
I'm trying to test some things in WebKit with live sources, and there doesn't seem to be any simple way to create a stream, so I made this.
It's currently very basic. I can think of plenty of new properties that would be useful (passing a SoupServer, GMainLoop, GMainContext, mime type, etc.), and useful features (detecting mime types), but I figured the basic version was a good first step, and then new features can be built on top of that.
I wasn't able to get this working with Ogg or WebM, but MPEG-TS works:
gst-launch-1.0 videotestsrc ! x264enc ! mpegtsmux ! souphttpserversink port=8080
gst-launch-1.0 playbin uri=http://localhost:8080
Patch 258778, "Patch to add gstsouphttpserversrc":
0001-soup-add-gstsouphttpserversrc-which-serves-streams-o.patch