github.com/pion/webrtc/v4@v4.0.1/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  go install github.com/pion/webrtc/v4/examples/rtcp-processing@latest
    15  ```
    16  
    17  ### Open rtcp-processing example page
    18  [jsfiddle.net](https://jsfiddle.net/zurq6j7x/) you should see two text-areas, 'Start Session' button and 'Copy browser SessionDescription to clipboard'
    19  
    20  ### Run rtcp-processing with your browsers Session Description as stdin
    21  In the jsfiddle press 'Copy browser Session Description to clipboard' or copy the base64 string manually.
    22  
    23  Now use this value you just copied as the input to `rtcp-processing`
    24  
    25  #### Linux/macOS
    26  Run `echo $BROWSER_SDP | rtcp-processing`
    27  #### Windows
    28  1. Paste the SessionDescription into a file.
    29  1. Run `rtcp-processing < my_file`
    30  
    31  ### Input rtcp-processing's Session Description into your browser
    32  Copy the text that `rtcp-processing` just emitted and copy into the second text area in the jsfiddle
    33  
    34  ### Hit 'Start Session' in jsfiddle
    35  You will see console messages for each inbound RTCP message from the remote peer.
    36  
    37  Congrats, you have used Pion WebRTC! Now start building something cool