mediastream-gain
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,3 +0,2 @@ | ||
(function(e){if("function"==typeof bootstrap)bootstrap("mediastreamgaincontroller",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.makeMediaStreamGainController=e}else"undefined"!=typeof window?window.MediaStreamGainController=e():global.MediaStreamGainController=e()})(function(){var define,ses,bootstrap,module,exports; | ||
return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){ | ||
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.MediaStreamGainController=e():"undefined"!=typeof global?global.MediaStreamGainController=e():"undefined"!=typeof self&&(self.MediaStreamGainController=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){ | ||
var support = require('webrtcsupport'); | ||
@@ -51,12 +50,19 @@ | ||
// created by @HenrikJoreteg | ||
var PC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection || window.RTCPeerConnection; | ||
var prefix; | ||
var isChrome = false; | ||
var isFirefox = false; | ||
var ua = navigator.userAgent.toLowerCase(); | ||
// basic sniffing | ||
if (ua.indexOf('firefox') !== -1) { | ||
prefix = 'moz'; | ||
isFirefox = true; | ||
} else if (ua.indexOf('chrome') !== -1) { | ||
prefix = 'webkit'; | ||
isChrome = true; | ||
} | ||
var PC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection; | ||
var IceCandidate = window.mozRTCIceCandidate || window.RTCIceCandidate; | ||
var SessionDescription = window.mozRTCSessionDescription || window.RTCSessionDescription; | ||
var prefix = function () { | ||
if (window.mozRTCPeerConnection) { | ||
return 'moz'; | ||
} else if (window.webkitRTCPeerConnection) { | ||
return 'webkit'; | ||
} | ||
}(); | ||
var MediaStream = window.webkitMediaStream || window.MediaStream; | ||
@@ -66,10 +72,11 @@ var screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
// export support flags and constructors.prototype && PC | ||
module.exports = { | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype && PC.prototype.createDataChannel), | ||
dataChannel: isChrome || isFirefox || (PC && PC.prototype && PC.prototype.createDataChannel), | ||
prefix: prefix, | ||
webAudio: !!(AudioContext && AudioContext.prototype.createMediaStreamSource), | ||
mediaStream: !!(MediaStream && MediaStream.prototype.removeTrack), | ||
screenSharing: screenSharing, | ||
screenSharing: !!screenSharing, | ||
AudioContext: AudioContext, | ||
@@ -81,4 +88,5 @@ PeerConnection: PC, | ||
},{}]},{},[1])(1) | ||
},{}]},{},[1]) | ||
(1) | ||
}); | ||
; |
{ | ||
"name": "mediastream-gain", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "cross-browser getUserMedia shim with node.js style error-first API.", | ||
@@ -20,3 +20,3 @@ "main": "mediastream-gain.js", | ||
"dependencies": { | ||
"webrtcsupport": "0.5.0" | ||
"webrtcsupport": "0.7.1" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
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
9642
113
+ Addedwebrtcsupport@0.7.1(transitive)
- Removedwebrtcsupport@0.5.0(transitive)
Updatedwebrtcsupport@0.7.1