vircadia-web-sdk icon indicating copy to clipboard operation
vircadia-web-sdk copied to clipboard

Retrieve/configure ICE server used

Open ctrlaltdavid opened this issue 4 years ago • 2 comments

WebRTCDataChannel.js hard codes the Vircadia ICE server: iceServers: [{ urls: "stun:ice.vircadia.com:7337" }]. The C++ equivalent is ICE_SERVER_DEFAULT_HOSTNAME in NetworkingConstants.h, though it can be overridden by a command line parameter when starting the domain server - https://docs.vircadia.com/developer/domain-server/command-line-parameters.html.

It may perhaps be necessary for Interface to get the ICE server address from the metaverse server for the chosen metaverse.

Similarly for other networking constants.

ctrlaltdavid avatar Jun 05 '21 03:06 ctrlaltdavid

From Misterblue:

The request "https://metaverse.vircadia.com/live/api/metaverse_info" returns a JSON structure that includes and ICE server url ("ice_server_url") as well as server version info. That request can be enhanced with a bunch of initial configuration information.

ctrlaltdavid avatar Jun 06 '21 19:06 ctrlaltdavid

Too early to do this one: the Vircadia ICE (STUN) server doesn't work for WebRTC which is a problem I'm grappling with currently.

ctrlaltdavid avatar Oct 22 '21 00:10 ctrlaltdavid