github.com/pion/webrtc/v3@v3.2.24/examples/reflect/README.md (about) 1 # reflect 2 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. 3 4 ## Instructions 5 ### Download reflect 6 ``` 7 export GO111MODULE=on 8 go get github.com/pion/webrtc/v3/examples/reflect 9 ``` 10 11 ### Open reflect example page 12 [jsfiddle.net](https://jsfiddle.net/g643ft1k/) you should see two text-areas and a 'Start Session' button. 13 14 ### Run reflect, with your browsers SessionDescription as stdin 15 In the jsfiddle the top textarea is your browser's Session Description. Press `Copy browser SDP to clipboard` or copy the base64 string manually. 16 We will use this value in the next step. 17 18 #### Linux/macOS 19 Run `echo $BROWSER_SDP | reflect` 20 #### Windows 21 1. Paste the SessionDescription into a file. 22 1. Run `reflect < my_file` 23 24 ### Input reflect's SessionDescription into your browser 25 Copy the text that `reflect` just emitted and copy into second text area 26 27 ### Hit 'Start Session' in jsfiddle, enjoy your video! 28 Your browser should send video to Pion, and then it will be relayed right back to you. 29 30 Congrats, you have used Pion WebRTC! Now start building something cool