Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spreadcast

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spreadcast - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc