ice-restart

command
v4.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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 with 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

Documentation

Overview

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL