ffmpeg-send is a simple application that shows how to send video to your browser using Pion WebRTC and FFmpeg.
This example requires you have FFmpeg installed. See the docs of go-astiav for how to do this.
export GO111MODULE=on
go install github.com/pion/example-webrtc-applications/v3/ffmpeg-send@latest
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 | ffmpeg-send
- Paste the SessionDescription into a file.
- Run
ffmpeg-send < my_file
Copy the text that ffmpeg-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