How to use opentok-network-test-js - 1 common examples

To help you get started, we’ve selected a few opentok-network-test-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github opentok / opentok-network-test-js / sample / src / js / index.js View on Github external
function startTest() {
  audioOnly = precallDiv.querySelector('#precall input').checked;
  var timeoutSelect = precallDiv.querySelector('select');
  var timeout = timeoutSelect.options[timeoutSelect.selectedIndex].text * 1000;
  var options = {
    audioOnly: audioOnly,
    timeout: timeout
  };
  otNetworkTest = new NetworkTest(OT, sessionInfo, options);
  otNetworkTest.testConnectivity()
    .then(results => ConnectivityUI.displayTestConnectivityResults(results))
    .then(testQuality);
}

opentok-network-test-js

Precall network test for applications using the OpenTok platform.

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis

Popular opentok-network-test-js functions