gstreamer-send is a simple application that shows how to send video to your browser using pion-WebRTC and GStreamer.
This example requires you have GStreamer installed, these are the supported platforms
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good
pacman -S mingw-w64-x86_64-gstreamer mingw-w64-x86_64-gst-libav mingw-w64-x86_64-gst-plugins-good mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-ugly
go get github.com/servicekit/webrtc/examples/gstreamer-send
jsfiddle.net you should see two text-areas and a 'Start Session' button
In the jsfiddle the top textarea is your browser, copy that and:
Run echo $BROWSER_SDP | gstreamer-send
- Paste the SessionDescription into a file.
- Run
gstreamer-send < my_file
Copy the text that gstreamer-send
just emitted and copy into second text area
A video should start playing in your browser above the input boxes, and will continue playing until you close the application.
Congrats, you have used pion-WebRTC! Now start building something cool