Giter Site home page Giter Site logo

ice-restart-test's Introduction

ice-restart-test

Test peer connections surviving network changes

To start:

$ npm start

By default it's on port 9094 (set the PORT environment variable to use a different port), and you should run it somewhere that is reachable after changing networks (you'll want to end up on a different public IP address). ngrok was used during testing.

How to try it

  1. Start the app.
  2. Open the URL shown in the terminal on two computers. Only Chrome is known to work at the time this test was written.
  3. Allow access to the camera when prompted, and the video should appear on the other computer.
  4. Change the network that one of the computers is on (so that it will come from a different public IP)
  5. Wait for the socket.io connection to timeout, and reconnect. Once completed the computers will exchange ice candidates again and the video shoudl resume.

Notes

The server treats the first browser to connect as the "offerer" (it will acquire a stream from an attached camera), and the second as the "answerer" (it will get the stream through the peer connection).

The server only supports a single pair (it's just a test!). To use two new computers, or if you manually refresh the pages you'll need to restart the server.

ice-restart-test's People

Contributors

thepatrick avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.