Re: [webrtc-pc] STUN/TURN Auto Discovery handling

@aboba I am not sure about pc.defaultIceServers is the right solution,
 

IMHO it is not really enough to inform the  WebApp/App about a new 
TURN server discovery through change of pc.defaultIceServers. 
This way, the App needs to monitor changes of pc.defaultIceServers to 
detect a new server discovery.

IMHO it is important to inform App that a new TURN server uri has 
discovered.
Furthermore important that discovery normally not contains any 
credential, for the TURN server.
So the newly discovered TURN server may not usable without a 
credential, and this way we need to trigger the app to request a 
credential for this (IP/FQDN) TURN server.

- IMHO an event would better to inform App after a network change has 
occurred that a TURN client discovered with anycast/dns etc a new TURN
 server.
- I think inform the App as a new event is more appropriate
  - and app could decide if that this server/IP is trusted/appropriate
 to use or not, 
  - and get credential for this TURN server
    - may ask for credential from an external "TURN service Auth 
server" 
  - and after it, configure the TURN server and with the requested 
credential to the PC on the usual way.


-- 
GitHub Notification of comment by misi
Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/941#issuecomment-262476702 
using your GitHub account

Received on Wednesday, 23 November 2016 10:18:49 UTC