WASdev/lib.rtcomm.clientjs

videoClient needs to support setting iceServers without serviceQuery dependency

swgraham opened this issue · 3 comments

Problem is that when an endpoint is instantiated right away we don't do anything when we get the ice servers from the server.

This will be part of a larger design issue about serviceQuery. Essentially:

Becauser serviceQuery is async and defines whether there is a server at all available, we need to set a state on the EndpointProvider to indicate it will not be, or CAN'T use a server. We also need to update any existing endpoints that have been created when the serviceQuery is returned. This is really only an issue if/when an endpoint is created during the provider initialization.

This is going to be fixed along w/ Issue #32

Cleaned up and made available can be passed on webrtc.enable() or via setRtcommEndpointConfig in a webrtcConfig object.