webrtcsupport
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "webrtcsupport", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Browser module to detect support for webrtc and extract proper constructors.", | ||
@@ -5,0 +5,0 @@ "main": "webrtcsupport.js", |
@@ -30,6 +30,7 @@ # webrtcsupport | ||
dataChannel: // boolean whether WebRTC data channels are supported | ||
prefix: // returns browser prefix (either moz or webkit for now) | ||
webAudio: // boolean support for web audio API | ||
PeerConnection: // constructor for creating a peer connection | ||
SessionDescription: // constructor for RTCSessionDescriptions | ||
IceCandidate: // constructor for ice candidate | ||
prefix: // returns browser prefix (either moz or webkit for now) | ||
} | ||
@@ -36,0 +37,0 @@ |
@@ -13,2 +13,3 @@ // created by @HenrikJoreteg | ||
var screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
var webAudio = !!window.webkitAudioContext; | ||
@@ -20,2 +21,3 @@ // export support flags and constructors | ||
prefix: prefix, | ||
webAudio: webAudio, | ||
screenSharing: screenSharing, | ||
@@ -22,0 +24,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
4674
54
47