spreadcast
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "spreadcast", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Broadcast a WebRTC stream to many subscribers", | ||
"main": "src/spreadcast.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "mkdir -p build; browserify src/spreadcast.js > build/spreadcast.min.js" | ||
}, | ||
@@ -27,6 +28,10 @@ "author": "Björn Breitgoff <syntheticore@gmail.com>", | ||
"eakwell": "^0.2.5", | ||
"freeice": "^2.2.0", | ||
"utf-8-validate": "^2.0.0", | ||
"webrtc-adapter": "^2.1.0", | ||
"ws": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^13.1.1" | ||
} | ||
} |
@@ -0,10 +1,9 @@ | ||
var freeice = require('freeice'); | ||
var _ = require('eakwell'); | ||
var peerConfig = {iceServers: freeice()}; | ||
var Client = function(container) { | ||
var self = this; | ||
_.each(require('webrtc-adapter').browserShim, function(shim) { | ||
shim(); | ||
}); | ||
var wsUrl = location.origin.replace(/^http/, 'ws'); | ||
@@ -57,3 +56,3 @@ var roomName; | ||
console.log("Got offer from receiver " + data.fromReceiver); | ||
var peer = new RTCPeerConnection(null); | ||
var peer = new RTCPeerConnection(peerConfig); | ||
peer.onicecandidate = function(e) { | ||
@@ -190,3 +189,3 @@ if(e.candidate) { | ||
senderPeer = new RTCPeerConnection(null); | ||
senderPeer = new RTCPeerConnection(peerConfig); | ||
@@ -193,0 +192,0 @@ senderPeer.onaddstream = function(e) { |
@@ -8,2 +8,9 @@ var _ = require('eakwell'); | ||
if(typeof window !== 'undefined') { | ||
_.each(require('webrtc-adapter').browserShim, function(shim) { | ||
shim(); | ||
}); | ||
window.Spreadcast = Spreadcast; | ||
} | ||
module.exports = Spreadcast; |
Sorry, the diff of this file is not supported yet
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
13831
360
6
1
+ Addedfreeice@^2.2.0
+ Addedfreeice@2.2.2(transitive)
+ Addednormalice@1.0.1(transitive)