You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

webrtc-test-suite

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtc-test-suite

Testing suite for Real life webRTC capability testing

1.0.2
Source
npmnpm
Version published
Weekly downloads
26
-68.67%
Maintainers
1
Weekly downloads
 
Created
Source

webrtc-test-suite

Testing suite for Real life webRTC capability testing

this is a work in progress

How to use:

To install the package use this command:

Module Bundler

yarn add webrtc-test-suite

If you are using a module bundler, you can import it with:

import _RTCTest from "webrtc-test-suite";

Include JS file

Add this to your HTML file:

<script src="https://unpkg.com/webrtc-test-suite@1.0.2/dist/index.js"></script>

Yoou will get a global object called: _RTCTest

All the check functions return a promise, or optionally you can supply a callback function as well.

// Function signatures: 
// check peer connection capabilities
checkPeerConnection(iceConfiguration,verbose[boolean],callback) // all the params are optional. Verbose creates logs
// Check media capture
checkMediaCapture(mediaConstraints,verbose[boolean],callback) // all the params are optional. Verbose creates logs
// make sure testDownload is a file and can be downloaded with AJAX (this test uses fetch)
checkInternetSpeed(testDownload,verbose[boolean],callback) // testDownload is required, return value in Mbps (Megabits Per second)

A better documentation is comming soon

This package is released under the MIT license, feel free to contribute.

made with 🖤 and JavaScript.

Keywords

webrtc

FAQs

Package last updated on 18 Jun 2020

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