Socket
Socket
Sign inDemoInstall

webrtcsupport

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webrtcsupport - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

2

package.json
{
"name": "webrtcsupport",
"version": "0.2.0",
"version": "0.3.0",
"description": "Browser module to detect support for webrtc and extract proper constructors.",

@@ -5,0 +5,0 @@ "main": "webrtcsupport.js",

@@ -30,6 +30,7 @@ # webrtcsupport

dataChannel: // boolean whether WebRTC data channels are supported
prefix: // returns browser prefix (either moz or webkit for now)
webAudio: // boolean support for web audio API
PeerConnection: // constructor for creating a peer connection
SessionDescription: // constructor for RTCSessionDescriptions
IceCandidate: // constructor for ice candidate
prefix: // returns browser prefix (either moz or webkit for now)
}

@@ -36,0 +37,0 @@

@@ -13,2 +13,3 @@ // created by @HenrikJoreteg

var screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26;
var webAudio = !!window.webkitAudioContext;

@@ -20,2 +21,3 @@ // export support flags and constructors

prefix: prefix,
webAudio: webAudio,
screenSharing: screenSharing,

@@ -22,0 +24,0 @@ SessionDescription: SessionDescription,

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