Comparing version 0.2.1 to 0.3.0
{ | ||
"name": "webrtc", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"keywords": ["webrtc", "browser"], | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -122,2 +122,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("webrtc",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.makeWebRTC=e}else"undefined"!=typeof window?window.WebRTC=e():global.WebRTC=e()})(function(){var define,ses,bootstrap,module,exports; | ||
self.sendToAll('speaking', {}); | ||
self.emit('speaking'); | ||
}); | ||
@@ -132,2 +133,3 @@ | ||
self.sendToAll('stopped_speaking', {}); | ||
self.emit('stoppedSpeaking'); | ||
}, 1000); | ||
@@ -329,30 +331,3 @@ }); | ||
},{"getusermedia":3,"hark":6,"rtcpeerconnection":4,"webrtcsupport":2,"wildemitter":5}],2:[function(require,module,exports){ | ||
// created by @HenrikJoreteg | ||
var PC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection || window.RTCPeerConnection; | ||
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 screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
var webAudio = !!window.webkitAudioContext; | ||
// export support flags and constructors.prototype && PC | ||
module.exports = { | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype && PC.prototype.createDataChannel), | ||
prefix: prefix, | ||
webAudio: webAudio, | ||
screenSharing: screenSharing, | ||
PeerConnection: PC, | ||
SessionDescription: SessionDescription, | ||
IceCandidate: IceCandidate | ||
}; | ||
},{}],3:[function(require,module,exports){ | ||
},{"getusermedia":3,"hark":6,"rtcpeerconnection":4,"webrtcsupport":2,"wildemitter":5}],3:[function(require,module,exports){ | ||
// getUserMedia helper by @HenrikJoreteg | ||
@@ -421,2 +396,29 @@ var func = (navigator.getUserMedia || | ||
},{}],2:[function(require,module,exports){ | ||
// created by @HenrikJoreteg | ||
var PC = window.mozRTCPeerConnection || window.webkitRTCPeerConnection || window.RTCPeerConnection; | ||
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 screenSharing = navigator.userAgent.match('Chrome') && parseInt(navigator.userAgent.match(/Chrome\/(.*) /)[1], 10) >= 26; | ||
var webAudio = !!window.webkitAudioContext; | ||
// export support flags and constructors.prototype && PC | ||
module.exports = { | ||
support: !!PC, | ||
dataChannel: !!(PC && PC.prototype && PC.prototype.createDataChannel), | ||
prefix: prefix, | ||
webAudio: webAudio, | ||
screenSharing: screenSharing, | ||
PeerConnection: PC, | ||
SessionDescription: SessionDescription, | ||
IceCandidate: IceCandidate | ||
}; | ||
},{}],5:[function(require,module,exports){ | ||
@@ -423,0 +425,0 @@ /* |
@@ -120,2 +120,3 @@ var webrtc = require('webrtcsupport'); | ||
self.sendToAll('speaking', {}); | ||
self.emit('speaking'); | ||
}); | ||
@@ -130,2 +131,3 @@ | ||
self.sendToAll('stopped_speaking', {}); | ||
self.emit('stoppedSpeaking'); | ||
}, 1000); | ||
@@ -132,0 +134,0 @@ }); |
33802
946