Git Product home page Git Product logo

node-jitterbuffer's Introduction

node-jitterbuffer

NodeJS native bindings to libspeex jitter buffer

var jitter = require('jitterbuffer').JitterBuffer;
var JB = jitter.JitterBuffer;
var jb = new JB();

jb.put({ data: new Buffer(10), timestamp: 10, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 30, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 20, span: 10 });
jb.put({ data: new Buffer(10), timestamp: 50, span: 10 });

jb.get(10).timestamp; // 10
jb.get(10).timestamp; // 20
jb.get(10).timestamp; // 30
jb.get(10)            // jitter.MISSING
jb.get(10).timestamp; // 50

Platform support

Supported platforms:

  • Linux x64
  • Darwin x64
  • Windows x64

Add new supported platforms by running ./configure in deps/speex-1.2rc1 and copying the following files:

  • config.h
  • include/speex/speex_config_types.h

to deps/config/speex-1.2rc1/<os>/<arch>. With config.h going to the root and the speex_config_types.h going to the speex subfolder. See the existing linux configurations for an example.

Use the following flags: --enable-static --disable-shared --with-pic

Add the new platform/architecture to package.json to enable npm install.

node-jitterbuffer's People

Contributors

rantanen avatar prior99 avatar mattvperry avatar thisisareku avatar

Watchers

leeoxiang avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.