webrtcsupport
Advanced tools
Comparing version 0.3.2 to 0.4.0
{ | ||
"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, |
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
5355
60
49