webrtc-adapter
Advanced tools
Comparing version 0.0.1 to 0.0.2
/*jslint node:true*/ | ||
/*globals RTCPeerConnection, mozRTCPeerConnection, webkitRTCPeerConnection */ | ||
/*globals RTCSessionDescription, mozRTCSessionDescription */ | ||
/*globals RTCIceCandidate, mozRTCIceCandidate */ | ||
'use strict'; | ||
var myRTCPeerConnection = null; | ||
var myRTCSessionDescription = null; | ||
var myRTCIceCandiate = null; | ||
@@ -21,2 +25,3 @@ var renameIceURLs = function (config) { | ||
// Unify PeerConnection Object. | ||
if (typeof RTCPeerConnection !== 'undefined') { | ||
@@ -33,2 +38,18 @@ myRTCPeerConnection = RTCPeerConnection; | ||
// Unify SessionDescrption Object. | ||
if (typeof RTCSessionDescription !== 'undefined') { | ||
myRTCSessionDescription = RTCSessionDescription; | ||
} else if (typeof mozRTCSessionDescription !== 'undefined') { | ||
myRTCSessionDescription = mozRTCSessionDescription; | ||
} | ||
// Unify IceCandidate Object. | ||
if (typeof RTCIceCandidate !== 'undefined') { | ||
myRTCIceCandidate = RTCIceCandidate; | ||
} else if (typeof mozRTCIceCandidate !== 'undefined') { | ||
myRTCIceCandidate = mozRTCIceCandidate; | ||
} | ||
exports.RTCPeerConnection = myRTCPeerConnection; | ||
exports.RTCSessionDescription = myRTCSessionDescription; | ||
exports.RTCIceCandidate = myRTCIceCandidate; |
{ | ||
"name": "webrtc-adapter", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Commonjs adapter.js browser compatibility shim for webRTC", | ||
@@ -5,0 +5,0 @@ "main": "adapter.js", |
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
14363
47