github.com/pion/webrtc/v4@v4.0.1/examples/ice-restart/README.md (about)

     1  # ice-restart
     2  ice-restart demonstrates Pion WebRTC's ICE Restart abilities.
     3  
     4  ## Instructions
     5  
     6  ### Download ice-restart
     7  This example requires you to clone the repo since it is serving static HTML.
     8  
     9  ```
    10  git clone https://github.com/pion/webrtc.git
    11  cd webrtc/examples/ice-restart
    12  ```
    13  
    14  ### Run ice-restart
    15  Execute `go run *.go`
    16  
    17  ### Open the Web UI
    18  Open [http://localhost:8080](http://localhost:8080). This will automatically start a PeerConnection. This page will now prints stats about the PeerConnection
    19  and allow you to do an ICE Restart at anytime.
    20  
    21  * `ICE Restart` is the button that causes a new offer to be made with `iceRestart: true`.
    22  * `ICE Connection States` will contain all the connection states the PeerConnection moves through.
    23  * `ICE Selected Pairs` will print the selected pair every 3 seconds. Note how the uFrag/uPwd/Port change everytime you start the Restart process.
    24  * `Inbound DataChannel Messages` containing the current time sent by the Pion process every 3 seconds.
    25  
    26  Congrats, you have used Pion WebRTC! Now start building something cool