traceablepeerconnection
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -218,7 +218,7 @@ // based on https://github.com/ESTOS/strophe.jingle/ | ||
//self.trace('addIceCandidateOnSuccess'); | ||
successCallback(); | ||
if (successCallback) successCallback(); | ||
}, | ||
function (err) { | ||
self.trace('addIceCandidateOnFailure', err); | ||
failureCallback(err); | ||
if (failureCallback) failureCallback(err); | ||
} | ||
@@ -225,0 +225,0 @@ ); |
{ | ||
"name": "traceablepeerconnection", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Lowlevel RTCPeerConnection wrapper which allows tracing the API calls", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.PeerConnection=e():"undefined"!=typeof global?global.PeerConnection=e():"undefined"!=typeof self&&(self.PeerConnection=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
if (stream.getAudioTracks().length) { | ||
info.audio = stream.getAudioTracks().map(function (track) { | ||
info.audio = stream.getAudioTracks().map(function (track) { | ||
return track.id; | ||
@@ -26,4 +26,4 @@ }); | ||
if (stream.getVideoTracks().length) { | ||
info.video = stream.getVideoTracks().map(function (track) { | ||
return track.id; | ||
info.video = stream.getVideoTracks().map(function (track) { | ||
return track.id; | ||
}); | ||
@@ -133,3 +133,3 @@ } | ||
TraceablePeerConnection.prototype.removeStream = function (stream) { | ||
this.trace('removeStream', dumpStream(stream)) | ||
this.trace('removeStream', dumpStream(stream)); | ||
this.peerconnection.removeStream(stream); | ||
@@ -219,10 +219,10 @@ }; | ||
this.trace('addIceCandidate', candidate); | ||
this.peerconnection.addIceCandidate(candidate, | ||
function () { | ||
this.peerconnection.addIceCandidate(candidate, | ||
function () { | ||
//self.trace('addIceCandidateOnSuccess'); | ||
successCallback(); | ||
if (successCallback) successCallback(); | ||
}, | ||
function (err) { | ||
self.trace('addIceCandidateOnFailure', err); | ||
failureCallback(err); | ||
if (failureCallback) failureCallback(err); | ||
} | ||
@@ -229,0 +229,0 @@ ); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43509