Skip to content

Releases: opentok/opentok-network-test-js

Improve MOS Calculations

17 Sep 23:41
00d1822
Compare
Choose a tag to compare
  • Enhance MOS scoring
  • Improve packet loss calculation
  • Add support for Opera
  • Remove support for IE
  • Add session options and Proxy URL Support
  • Package updates

Add OT.initSession() options and Proxy URL options

22 Jul 18:22
6991a66
Compare
Choose a tag to compare
v2.3.0

Add OT.initSession() options and Proxy URL options

Fix subscriber already disconnected error

02 May 20:37
c897b34
Compare
Choose a tag to compare
v2.2.1

Fix subscriber already disconnected error

New audioSource/videoSource options, Node module updates

21 Apr 21:10
adaba87
Compare
Choose a tag to compare
v2.2.0

audioSource/videoSource options, Node module updates

Fixes bad quality results, node module updates, and more

31 Jan 19:43
979b361
Compare
Choose a tag to compare
  • Fixes false negative quality results by fixing the packet loss ratio calculation
  • Node module updates, removing flagged modules
  • Support for Chromium-based version of Edge
  • Safari no longer requires H.264

Remove vulnerable node dependencies

19 Jun 19:56
76ab6f3
Compare
Choose a tag to compare
v2.0.1

remove vulnerable node dependencies

v2.0.0

14 Aug 21:57
37d0be7
Compare
Choose a tag to compare

New features:

  • Added Safari support for the NetworkTest.testQuality() method.

  • The NetworkTest.testConnectivity() and NetworkTest.testQuality() methods no longer takes a
    completionHandler parameter. Use the Promise returned by these methods to monitor completion
    and failure. (Note that if you need to support Internet Explorer, you will need to use a
    Promise polyfill.)

  • The results object for NetworkTest.testQuality() now includes separate MOS results for
    audio and video:

    otNetworkTest.testQuality().then((results) => {
      console.log('Audio MOS:', results.audio.mos);
      console.log('Video MOS', results.video.mos);
    });

    These two MOS results replace the single MOS result (results.mos) in v1.

  • Added support for audio-only tests and setting a time limit on the NetworkTest.testQuality()
    method.

    The NetworkTest constructor function now has an optoinal third parameter -- options. This
    options object has two properties, audioOnly and timeout. Set audioOnly to true to
    have the test run in audio-only mode. Set timeout to a number specifying the timeout for the
    NetworkTest.testQuality() method, in millisecond (set this to a value between 5000 and 30000 --
    5 and 30 seconds):

    const sessionInfo = {
      apiKey: '123456', // Add the API key for your OpenTok project here.
      sessionId: '1_MX40NzIwMzJ-fjE1MDElGQkJJfn4', // Add a test session ID for that project
      token: 'T1==cGFydG5lcXN0PQ==' // Add a token for that session here
    }
    const options = { audioOnly: true, timeout: 15000 };
    const otNetworkTest = new NetworkTest(OT, sessionInfo, options);
  • Added a NetworkTest.stop() method. Calling this method causes the quality test to stop
    as soon as it is able to obtain results. (Running the test for the complete duration should
    produce more accurate MOS results.)

  • The module now exports two objects: NetworkTest (the default) and ErrorNames.

    The new ErrorNames enumerates error name values. Use these values to determine the type
    of error received:

    import NetworkTest, { ErrorNames }  from 'opentok-network-test-js';
    // ...
    otNetworkTest.testQuality().then(() => {
      // Display results
    }).catch((error) => {
      switch (error.name) {
        case ErrorNames.INIT_PUBLISHER_ERROR:
          // Notify the user to grant access to the camera and microphone
          break;
        // ...
      }
    });

v1.1.0

25 Jun 22:02
f29ea5f
Compare
Choose a tag to compare

This release contains a few bug fixes and enhancements:

  • If no camera is available, the testQuality() method now completes in audio-only mode.
  • Updates to TypeScript type definitions.

1.0.0 Beta 1 version

29 Nov 19:59
1bd06c8
Compare
Choose a tag to compare
1.0.0 Beta 1 version Pre-release
Pre-release
Merge pull request #22 from opentok/develop

Merge develop