Skip to content

Files

Latest commit

bbf5126 · Sep 5, 2023

History

History
This branch is 1 commit ahead of, 233 commits behind pion/webrtc:master.

ice-restart

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 5, 2023
May 5, 2023
Sep 5, 2023

ice-restart

ice-restart demonstrates Pion WebRTC's ICE Restart abilities.

Instructions

Download ice-restart

This example requires you to clone the repo since it is serving static HTML.

git clone https://github.com/pion/webrtc.git
cd webrtc/examples/ice-restart

Run ice-restart

Execute go run *.go

Open the Web UI

Open http://localhost:8080. This will automatically start a PeerConnection. This page will now prints stats about the PeerConnection and allow you to do an ICE Restart at anytime.

  • ICE Restart is the button that causes a new offer to be made wih iceRestart: true.
  • ICE Connection States will contain all the connection states the PeerConnection moves through.
  • ICE Selected Pairs will print the selected pair every 3 seconds. Note how the uFrag/uPwd/Port change everytime you start the Restart process.
  • Inbound DataChannel Messages containing the current time sent by the Pion process every 3 seconds.

Congrats, you have used Pion WebRTC! Now start building something cool