github.com/pion/webrtc/v3@v3.2.24/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 mkdir -p $GOPATH/src/github.com/pion 11 cd $GOPATH/src/github.com/pion 12 git clone https://github.com/pion/webrtc.git 13 cd webrtc/examples/ice-restart 14 ``` 15 16 ### Run ice-restart 17 Execute `go run *.go` 18 19 ### Open the Web UI 20 Open [http://localhost:8080](http://localhost:8080). This will automatically start a PeerConnection. This page will now prints stats about the PeerConnection 21 and allow you to do an ICE Restart at anytime. 22 23 * `ICE Restart` is the button that causes a new offer to be made wih `iceRestart: true`. 24 * `ICE Connection States` will contain all the connection states the PeerConnection moves through. 25 * `ICE Selected Pairs` will print the selected pair every 3 seconds. Note how the uFrag/uPwd/Port change everytime you start the Restart process. 26 * `Inbound DataChannel Messages` containing the current time sent by the Pion process every 3 seconds. 27 28 Congrats, you have used Pion WebRTC! Now start building something cool