github.com/pion/webrtc/v3@v3.2.24/examples/rtcp-processing/README.md (about) 1 # rtcp-processing 2 rtcp-processing demonstrates the Public API for processing RTCP packets in Pion WebRTC. 3 4 This example is only processing messages for a RTPReceiver. A RTPReceiver is used for accepting 5 media from a remote peer. These APIs also exist on the RTPSender when sending media to a remote peer. 6 7 RTCP is used for statistics and control information for media in WebRTC. Using these messages 8 you can get information about the quality of the media, round trip time and packet loss. You can 9 also craft messages to influence the media quality. 10 11 ## Instructions 12 ### Download rtcp-processing 13 ``` 14 export GO111MODULE=on 15 go get github.com/pion/webrtc/v3/examples/rtcp-processing 16 ``` 17 18 ### Open rtcp-processing example page 19 [jsfiddle.net](https://jsfiddle.net/zurq6j7x/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard' 20 21 ### Run rtcp-processing with your browsers Session Description as stdin 22 In the jsfiddle press 'Copy browser Session Description to clipboard' or copy the base64 string manually. 23 24 Now use this value you just copied as the input to `rtcp-processing` 25 26 #### Linux/macOS 27 Run `echo $BROWSER_SDP | rtcp-processing` 28 #### Windows 29 1. Paste the SessionDescription into a file. 30 1. Run `rtcp-processing < my_file` 31 32 ### Input rtcp-processing's Session Description into your browser 33 Copy the text that `rtcp-processing` just emitted and copy into the second text area in the jsfiddle 34 35 ### Hit 'Start Session' in jsfiddle 36 You will see console messages for each inbound RTCP message from the remote peer. 37 38 Congrats, you have used Pion WebRTC! Now start building something cool