webrtcsupport
Advanced tools
Comparing version 0.0.1 to 0.1.0
{ | ||
"name": "webrtcsupport", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Browser module to detect support for webrtc and extract proper constructors.", | ||
@@ -5,0 +5,0 @@ "main": "webrtcsupport.js", |
@@ -33,2 +33,3 @@ # webrtcsupport | ||
IceCandidate: // constructor for ice candidate | ||
prefix: // returns browser prefix (either moz or webkit for now) | ||
} | ||
@@ -35,0 +36,0 @@ |
@@ -5,2 +5,9 @@ // created by @HenrikJoreteg | ||
var SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription; | ||
var prefix = function () { | ||
if (window.mozRTCPeerConnection) { | ||
return 'moz'; | ||
} else if (window.webkitRTCPeerConnection) { | ||
return 'webkit'; | ||
} | ||
}(); | ||
@@ -13,3 +20,4 @@ // export support flags and constructors | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype.createDataChannel) | ||
dataChannel: !!(PC && PC.prototype.createDataChannel), | ||
prefix: prefix | ||
}; |
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
4090
42
46