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