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 - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

checks/mediaCapture.js

@@ -7,3 +7,3 @@ import getUserMedia from "../utils/user_media";

verbose && console.log(`[media-capture]: Requesting user media`);
let _to = null;
let _to = null;
if(timeout && Number.isInteger(timeout)) _to = setTimeout(()=>reject(new Error(`Timeout of ${timeout}ms reached`)), timeout);

@@ -10,0 +10,0 @@ getUserMedia(constraints, verbose)

@@ -14,8 +14,8 @@ import checkPeerConnection from "./checks/peerConnection";

// Utils function
const checkPeerConnectionSilent=function(rtcConfig = {}, verbose = false){return flat(checkPeerConnection(rtcConfig, verbose))};
const checkMediaCaptureSilent=function(constraints, verbose = false, getStream = false){return flat(checkMediaCapture(constraints, verbose, getStream))};
const checkPeerConnectionSilent=function(rtcConfig = {}, verbose = false, timeout = 30000){return flat(checkPeerConnection(rtcConfig, verbose, timeout))};
const checkMediaCaptureSilent=function(constraints, verbose = false, getStream = false, timeout = 60000){return flat(checkMediaCapture(constraints, verbose, getStream, timeout))};
const checkInternetSpeedSilent=function(checkerFile, verbose = false){return flat(checkInternetSpeed(checkerFile, verbose))};
const countDeviesSilent=function(verbose = false){return flat(countDevies(verbose))};
const getUserMediaSilent=function(constraints, verbose = false){return flat(getUserMedia(constraints, verbose))};
const checkRelayPerformanceSilent=function(rtcConfig, verbose, timeout){return flat(checkRelayPerformance(rtcConfig, verbose, timeout))};
const checkRelayPerformanceSilent=function(rtcConfig, verbose = false, timeout = 30000){return flat(checkRelayPerformance(rtcConfig, verbose, timeout))};
const utils = {

@@ -22,0 +22,0 @@ flat,

{
"name": "webrtc-test-suite",
"version": "2.1.0",
"version": "2.1.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "source": "index.js",

@@ -29,3 +29,3 @@ # Real life Capability testing and utilities for WebRTC.

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

@@ -42,2 +42,4 @@ You will get a global object called: `_rtc`. And you can access all the functionalities from that object.

> Functions that accepts the `verbose` (Boolean) argument, will generate logs in the console if `verbose` is set to `true`. Default is `false`.
> Function that accepts a timeout, that will automatically reject if the internal request does not fulfill before time. setting the timeout to `0` will disable timeout. The default timeout for peer connection related functions is 30000ms (30 seconds) and for media capture is 60000ms (1 minute).
### 0. `checkFeatureSupport`:

@@ -44,0 +46,0 @@ > Please note: *Feaeture detection is not the primary objective of this tool, Detecting if the feature actually works is the primary objective. Feature detection is provided just as an additional tool*

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