We are pleased to announce that the WebRTC.ventures has open sourced their integration of opentok.js integration with callstats.io. Especially thankful to Arin, Rafael, and the team for developing and volunteering to maintain the integration for anyone using opentok.js.
The current integration covers the 1) peer-to-peer, and 2) the star topology using the media bridge. However, the current integration does not work appropriately for multi-party mesh conferences, the main reason for this is that the TokBoX API does not expose an identifier for remote parties, hence the shim needs the application provider to provide the local and remote userIDs.
How to integrate?
For full documentation, go to the GitHub library.
https://api.callstats.io/static/callstats-opentok-shim.min.js file in your page after the callstats.io script.
Then, initialize the like shown below:
Currently, the shim supports
SessionID. So, in example: