Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
50
decreased by-20.63%
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.1.0/dist/index.js"></script>

Yoou will get a global object called: _RTCTest

All the check functions return a promise.

// Function signatures: 
// check peer connection capabilities
checkPeerConnection(iceConfiguration,verbose[boolean]) // all the params are optional. If you chose to go verbose, pass a blank obe. Verbose creates logs
// Check media capture
checkMediaCapture(mediaConstraints,verbose[boolean]) // Constraints is required. Verbose creates logs
// make sure testDownload is a file and can be downloaded with AJAX (this test uses fetch)
checkInternetSpeed(testDownload,verbose[boolean]) // testDownload is required, return value in Mbps (Megabits Per second)
countDevices([verbose = false]) // counts the number of audio video input output devices

A better documentation is comming soon


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

made with 🖤 and JavaScript.

Keywords

FAQs

Package last updated on 19 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

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