Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.3.2 to 0.4.0

2

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

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

@@ -31,3 +31,5 @@ # webrtcsupport

prefix: // returns browser prefix (either moz or webkit for now)
webAudio: // boolean support for web audio API
screenSharing: // boolean guess of whether screensharing is supported,
webAudio: // A support for web audio API
AudioContext: // the audio context constructor from the web audio API
PeerConnection: // constructor for creating a peer connection

@@ -34,0 +36,0 @@ SessionDescription: // constructor for RTCSessionDescriptions

@@ -15,3 +15,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("webrtcsupport",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeWebrtcsupport=e}else"undefined"!=typeof window?window.webrtcsupport=e():global.webrtcsupport=e()})(function(){var define,ses,bootstrap,module,exports;

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

@@ -23,4 +23,5 @@ // export support flags and constructors.prototype && PC

prefix: prefix,
webAudio: webAudio,
webAudio: !!AudioContext.prototype.createMediaStreamSource,
screenSharing: screenSharing,
AudioContext: AudioContext,
PeerConnection: PC,

@@ -27,0 +28,0 @@ SessionDescription: SessionDescription,

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

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

@@ -21,4 +21,5 @@ // export support flags and constructors.prototype && PC

prefix: prefix,
webAudio: webAudio,
webAudio: !!AudioContext.prototype.createMediaStreamSource,
screenSharing: screenSharing,
AudioContext: AudioContext,
PeerConnection: PC,

@@ -25,0 +26,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