Skip to content

v0.21.0 restartIce

Compare
Choose a tag to compare
@shinyoshiaki shinyoshiaki released this 05 Jan 02:19
· 26 commits to develop since this release

Support for restartIce has been added.
https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/restartIce

You can reconnect to the network while maintaining the RTCPeerConnection session.

This is useful in scenarios such as:

  • Temporary network disconnections
  • Switching from Wi-Fi to a mobile network

For usage details, please refer to the sample code and other articles available on Google:
https://github.com/shinyoshiaki/werift-webrtc/blob/c4401dfa2943104992b4846ececddb814281f419/examples/ice/restart/offer.ts