reflect demonstrates how with one PeerConnection you can send video to Pion and have the packets sent back. This example could be easily extended to do server side processing.
export GO111MODULE=on
go get github.com/pion/webrtc/v3/examples/reflect
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 | reflect
- Paste the SessionDescription into a file.
- Run
reflect < my_file
Copy the text that reflect
just emitted and copy into second text area
Your browser should send video to Pion, and then it will be relayed right back to you.
Congrats, you have used Pion WebRTC! Now start building something cool