Here is a guest blog post from Alan Ford, Technology Specialist at Pexip. Pexip provides distributed, virtualized software based conferencing solutions for WebRTC, SIP, H.323, and Microsoft Skype for Business. They recently released the callstats.io plugin for Pexip’s API and products. A huge thanks to Pexip for doing the integration bringing WebRTC analytics and monitoring for Pexip. The callstats.io team applauds them!
Pexip is delighted to announce that in Pexip Infinity v12, APIs were added that can be used to integrate callstats.io with the Pexip Infinity WebRTC Client (Pexip Infinity Connect) or any other WebRTC client built upon Pexip’s PexRTC API.
For developers using PexRTC to build their own WebRTC applications, three new event callbacks were created which can be used to call out to the callstats.io API. These callbacks are:
PexRTC.event_newPC = function(pc, uuid, conf, call_type)
, where:
pc
: PeerConnection objectuuid
: unique identifier of this callconf
: conference namecall_type
: internal call type, may be ‘screen’ for screensharing, ‘audio_only’ for audio only.
PexRTC.event_event = function(pc, conf, ev)
, where:
pc
: PeerConnection objectconf
: conference nameev
: event; audioMute/audioUnmute/videoPause/videoResume/fabricTerminated
PexRTC.event_error = function(pc, conf, ev, err, sdp)
, where:
pc
: PeerConnection objectconf
: conference nameev
: the function in questionerr
: error from functionsdp
: sdp in question, if relevant
Pexip has developed an integration for the Infinity Connect WebApp which can be used by customers to add this functionality, and also get inspiration for how to use this API elsewhere. The zip file shows how to use this within the Pexip Infinity Connect WebApp plugins architecture. This can be uploaded stand-alone as a web app branding configuration, or merged into existing web app branding.
This zip file contains an edited settings.js
, which adds a scripts
block (if you’re already using customisations, you can just add this scripts
block to your existing customisations), and a csio.js
file which is imported to make the above calls to the callstats.io API. This will need to be edited to make use of your personal identifiers in the callStats.initialize
call.
Any questions about this integration can be directed to Alan Ford (alan[a]pexip.com) and Binoy Chemmagate (binoy[a]callstats.io).