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

jingle

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jingle

Generic Jingle via WebRTC session manager.

  • 1.5.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
decreased by-3.7%
Maintainers
2
Weekly downloads
 
Created
Source

Jingle WebRTC

Example

var conn = new RealtimeConnection(); // stanza.io, xmpp-ftw, strophe, etc
var jingle = new Jingle();
var attachMediaStream = require('attachmediastream');
var localMedia = require('localMedia');

localMedia.on('localStream', function (stream) {
    attachMediaStream(stream, document.getElementById('localVideo'), {
        mirror: true,
        muted: true
    });
});

jingle.on('send', function (data) {
     conn.send(data);
});

jingle.on('peerStreamAdded', function (session, stream) {
     attachMediaStream(stream, document.getElementById('remoteVideo'));
});

// Answering a call request.
jingle.on('incoming', function (session) {
     // attach a media stream if desired
     // session.addStream(localMedia.localStream);
     session.accept(); // Or display an incoming call banner, etc
});

// Starting an A/V session.
localMedia.start(null, function (stream) {
    var sess = jingle.createMediaSession('peer@example.com/resouce');
    sess.addStream(stream);
    sess.start();
});

Installing

$ npm install jingle

Building bundled/minified version (for AMD, etc)

$ make build

The bundled and minified files will be in the generated build directory.

License

MIT

Created by

If you like this, follow @lancestout or @hcornflower on twitter.

Keywords

FAQs

Package last updated on 09 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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