New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

callstats-twilio-video

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callstats-twilio-video

Twilio Video.js interface for callstats.io

  • 1.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

callstats-twilio-video-js

Twilio Video JS interface to callstats.io.

Install

  • Adding a <script> tag in the HTML.

In case no module loaded is used, a global window.callstatstwiliovideo is exposed.

NOTE: This library does not include the callstats.io library (it must be added separetely).

Documentation

Usage example

In the HTML:

<!DOCTYPE html>
<html>
  <head>
    <!-- Load callstats.io library (it provides window.callstats -->
    <script src="https://api.callstats.io/static/callstats.min.js"></script>
    <!-- Load Twilio Video JS library -->
    <script src="//media.twiliocdn.com/sdk/js/video/v1/twilio-video.min.js"></script>
    <!-- Load callstats-twilio-video library (it provides window.callstatstwiliovideo) -->
    <script src="https://api.callstats.io/static/callstats-twilio-video.min.js"></script>
    <!-- Load our app code -->
    <script src="js/app.js"></script>
  </head>

  <body>
    <!-- your stuff -->
  </body>
</html>

In app.js:


const Video = Twilio.Video;

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

  callstatstwiliovideo(room, peerToPeerTruthy, AppID, AppSecret);

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

  ...

});

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

Development

When using Bower or a <script> tag, the provided library is built with browserify, which means that it can be used with any kind of JavaScript module loader system (AMD, CommonJS, etc) or,

  • Using NPM: $ npm install callstats-twilio-video
  • Using Bower: $ bower install callstats-twilio-video

Install NPM development dependencies:

$ npm install

Install gulp-cli globally (which provides the gulp command):

$ npm install -g gulpjs
  • gulp prod generates a production/minified dist/callstats-twilio-video.min.js bundle.
  • gulp dev generates a development non-minified and sourcemaps enabled dist/callstats-twilio-video.js bundle.

Authors

Karthik BR (https://callstats.io), Dan Jenkins at Nimble Ape Ltd (https://nimblea.pe).

Keywords

FAQs

Package last updated on 28 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc