Selkies
Developer Reference

webrtc_ice_config

WebRTC ICE configuration: builders and parsers for RTCPeerConnection-style ICE server JSON, the prioritized get_rtc_configuration resolver, and refresh monitors (HMAC shared-secret, TURN REST, Cloudflare, and a config-file watcher) that push updated credentials through an on_rtc_config callback. The periodic loops share one shutdown idiom: an asyncio.Event waited on with a timeout, so stop() interrupts the sleep immediately instead of waiting out the period.

attributelogger_rtcice
= logging.getLogger('webrtc')
attributeDEFAULT_RTC_CONFIG
= '{\n "lifetimeDuration": "86400s",\n "iceServers": [\n {\n "urls": [\n "stun:stun.l.google.com:19302"\n ]\n }\n ],\n "blockStatus": "NOT_BLOCKED",\n "iceTransportPolicy": "all"\n}'
attributeDEFAULT_STUN_SERVERS
= [('stun.l.google.com', 19302), ('stun.cloudflare.com', 3478)]

On this page

No Headings
Edit on GitHub