simple-webrtc
Advanced tools
Comparing version 1.0.2 to 2.0.0
var events = require('events'); | ||
var IceCandidate = require('./webrtc/ice-candidate'); | ||
var PeerConnection = require('./webrtc/peer-connection'); | ||
var SessionDescription = require('./webrtc/session-description'); | ||
var EventEmitter = events.EventEmitter; | ||
@@ -11,3 +7,3 @@ | ||
var connection = new EventEmitter(); | ||
var peerConnection = new PeerConnection(config); | ||
var peerConnection = new window.RTCPeerConnection(config); | ||
var localStream = null; | ||
@@ -64,3 +60,3 @@ var remoteStream = null; | ||
return new Promise(function(resolve, reject) { | ||
var sessionDescription = new SessionDescription(offer); | ||
var sessionDescription = new window.RTCSessionDescription(offer); | ||
peerConnection.setRemoteDescription(sessionDescription, resolve, reject); | ||
@@ -71,3 +67,3 @@ }); | ||
function addIceCandidate(candidate) { | ||
peerConnection.addIceCandidate(new IceCandidate(candidate)); | ||
peerConnection.addIceCandidate(new window.RTCIceCandidate(candidate)); | ||
} | ||
@@ -108,3 +104,3 @@ | ||
return new Promise(function(resolve, reject) { | ||
var sessionDescription = new SessionDescription(sdp); | ||
var sessionDescription = new window.RTCSessionDescription(sdp); | ||
var onSuccess = resolve.bind(null, sdp); | ||
@@ -111,0 +107,0 @@ peerConnection.setLocalDescription(sessionDescription, onSuccess, reject); |
var events = require('events'); | ||
var webRtcAdapter = require('webrtc-adapter'); | ||
var Connection = require('./connection'); | ||
var Recorder = require('./recorder'); | ||
var UserMedia = require('./webrtc/user-media'); | ||
var UserMedia = require('./user-media'); | ||
@@ -7,0 +8,0 @@ var EventEmitter = events.EventEmitter; |
{ | ||
"name": "simple-webrtc", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "A simple WebRTC and MediaRecorder wrapper.", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha --recursive -R spec" | ||
}, | ||
@@ -26,3 +25,6 @@ "repository": { | ||
"mocha": "^2.5.3" | ||
}, | ||
"dependencies": { | ||
"webrtc-adapter": "^1.3.0" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
8910
1
8
178
+ Addedwebrtc-adapter@^1.3.0
+ Addedsdp@1.5.4(transitive)
+ Addedwebrtc-adapter@1.4.0(transitive)