SDK Update: Twilio Programmable Video

By Karthik BR on October 2, 2017

Today we are glad to announce an integration with Twilio Video, which was announced earlier this summer. The Twilio Video JS interface can be found on our ever growing Integrations library.

In addition to Twilio Video, there’s also the pre-existing integration to Twilio Voice

Special thanks to Dan Jenkins and the Nimble Ape team for getting this integration up and running!

How to use (examples)

In html:

<!DOCTYPE html>
        <!-- Load library (it provides window.callstats -->
        <script src=""></script>
        <!-- Load Twilio Video JS library -->
        <script src="//">        </script>
        <!-- Load callstats-twilio-video library (it provides window.callstatstwiliovideo) -->
        <script src=""></script>
        <!-- Load our app code -->
        <script src="js/app.js"></script>
    <!-- your stuff -->


In app.js:

const Video = Twilio.Video;

Video.connect('$TOKEN', { name: 'room-name' }).then(room => {

    callstats = callstatstwiliovideo(room, peerToPeer, AppID, AppSecretOrTokenGenerator, localUserID, csInitCallback, csStatsCallback, configParams);

    console.log('Connected to Room "%s"',;

    // you can also set the room name later if you don't have the room info while initializing callstats




// Run the callstats-twilio-video library for this Twilio.Video.Room


Npm and bower packages for callstats-twilio-video is also available.
Read here the full documentation

Sample app can be found here

Are you a Twilio Voice and Video user? Sign up to to better understand your Twilio app’s performance!

Tags: WebRTC,, WebRTC Monitoring