Socket
Socket
Sign inDemoInstall

rtcpeerconnection

Package Overview
Dependencies
Maintainers
5
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtcpeerconnection - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

4

build.js

@@ -1,2 +0,2 @@

var bundle = require('browserify')(),
var bundle = require('browserify')({standalone: 'PeerConnection'}),
fs = require('fs');

@@ -6,2 +6,2 @@

bundle.add('./rtcpeerconnection');
bundle.bundle({standalone: 'PeerConnection'}).pipe(fs.createWriteStream('rtcpeerconnection.bundle.js'));
bundle.bundle().pipe(fs.createWriteStream('rtcpeerconnection.bundle.js'));
{
"name": "rtcpeerconnection",
"version": "3.1.2",
"version": "3.1.3",
"description": "A tiny browser module that normalizes and simplifies the API for WebRTC peer connections.",

@@ -23,3 +23,2 @@ "main": "rtcpeerconnection.js",

"traceablepeerconnection": "^1.0.0",
"webrtcsupport": "^1.0.0",
"wildemitter": "1.x",

@@ -29,5 +28,7 @@ "webrtc-adapter-test": "^0.1.4"

"devDependencies": {
"browserify": "2.x",
"browserify": "^10.2.1",
"precommit-hook": "1.x",
"tape": "2.x"
"tape": "^4.0.0",
"travis-multirunner": "^2.5.0",
"testling": "^1.7.1"
},

@@ -34,0 +35,0 @@ "testling": {

var util = require('util');
var each = require('lodash.foreach');
var pluck = require('lodash.pluck');
var webrtc = require('webrtcsupport');
var SJJ = require('sdp-jingle-json');

@@ -22,5 +21,5 @@ var WildEmitter = require('wildemitter');

if (constraints && constraints.optional &&
adapter.webrtcDetectedBrowser === 'chrome' &&
adapter.webrtcDetectedBrowser === 'chrome' &&
navigator.appVersion.match(/Chromium\//) === null) {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.enableChromeNativeSimulcast) {

@@ -36,3 +35,3 @@ self.enableChromeNativeSimulcast = true;

adapter.webrtcDetectedBrowser === 'chrome') {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.enableMultiStreamHacks) {

@@ -46,3 +45,3 @@ self.enableMultiStreamHacks = true;

if (constraints && constraints.optional) {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetRestrictBandwidth) {

@@ -60,3 +59,3 @@ self.restrictBandwidth = constraint.andyetRestrictBandwidth;

if (constraints && constraints.optional) {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetBatchIce) {

@@ -74,3 +73,3 @@ self.batchIceCandidates = constraint.andyetBatchIce;

if (constraints && constraints.optional && adapter.webrtcDetectedBrowser === 'chrome') {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetFasterICE) {

@@ -85,3 +84,3 @@ self.eliminateDuplicateCandidates = constraint.andyetFasterICE;

if (constraints && constraints.optional) {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetDontSignalCandidates) {

@@ -97,3 +96,3 @@ self.dontSignalCandidates = constraint.andyetDontSignalCandidates;

if (constraints && constraints.optional) {
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetAssumeSetLocalSuccess) {

@@ -111,3 +110,3 @@ self.assumeSetLocalSuccess = constraint.andyetAssumeSetLocalSuccess;

this.wtFirefox = 0;
constraints.optional.forEach(function (constraint, idx) {
constraints.optional.forEach(function (constraint) {
if (constraint.andyetFirefoxMakesMeSad) {

@@ -169,3 +168,3 @@ self.wtFirefox = constraint.andyetFirefoxMakesMeSad;

if (this.config.debug) {
this.on('*', function (eventName, event) {
this.on('*', function () {
var logger = config.logger || console;

@@ -485,3 +484,2 @@ logger.log('PeerConnection event:', arguments);

PeerConnection.prototype.answer = function (constraints, cb) {
var self = this;
var hasConstraints = arguments.length === 2;

@@ -565,3 +563,2 @@ var callback = hasConstraints ? cb : constraints;

var sim = [];
var rtx = [];
if (self.enableChromeNativeSimulcast) {

@@ -574,3 +571,2 @@ // native simulcast part 1: add another SSRC

if (answer.jingle.contents.length >= 2 && answer.jingle.contents[1].name === 'video') {
var hasSimgroup = false;
var groups = answer.jingle.contents[1].description.sourceGroups || [];

@@ -643,3 +639,2 @@ var hasSim = false;

}
var groups = expandedAnswer.jingle.contents[1].description.sourceGroups || [];
expandedAnswer.jingle.contents[1].description.sources.forEach(function (source, idx) {

@@ -646,0 +641,0 @@ // the floor idx/2 is a hack that relies on a particular order

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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