ambianic / peerjs-python

Python port of PeerJS client
Apache License 2.0
89 stars 33 forks source link

Implement ICE server probing to prevent webrtc service downtime #35

Open ivelin opened 4 years ago

ivelin commented 4 years ago

Currently aiortc does not implement ICETrickle nor is it able to fall back from a failing primary STUN or TURN server to a fall back option provided in the API standard RTCConfiguration list.

As a workaround, we can implement a background thread that periodically (e.g. every minute) polls the servers in the RTCConfig list and removes the dead ones. Respectively as needed, signal the peerjs code to reconnect via healthy servers.

ivelin commented 4 years ago

related to #34 and https://github.com/aiortc/aioice/issues/4