Git Product home page Git Product logo

minnie-janus's Introduction

minnie-janus

Test badge

A small, modern, general interface module written in ES8 Javascript for the Janus WebRTC gateway API, for browsers as well as Node.js.

Inspiration came from the project minijanus (hence this name, 'minnie-janus'), but this is a rewrite from scratch because I needed ES modules, events, async/await syntax, better logging, and a fix of one small API issue in minijanus.

Provided are two behavior implementations, Session (see src/session.js) and BasePlugin (see src/base-plugin.js), which transparently map to their server-side equivalents.

BasePlugin is supposed to be extended with per-plugin logic before being attached to a Session instance, because Janus plugins are more like applications with very specific behavior. See examples below on how to extend the BasePlugin implementation.

Neither Session nor BasePlugin instances actually communicate with janus-gateway. The parent application instantiating a Session is responsible for wiring up the transport of choice (REST HTTP(S), (Secure) WebSockets, etc.) to the Session.receive() method and the Session#output event.

Usage of mini-janus is best illustrated by the full demo/example implementing the 'echotest' plugin (included in Janus' source code). It can be found in the demo subdirectory (see also demo/README.md there).

The implementation has been automatically tested against the following janus-gateway versions:

  • 0.7
  • 0.8
  • 0.9
  • 0.14

Usage

See:

  1. echotest demo contained in this repository
  2. janus-rtpforward-plugin demo

minnie-janus's People

Contributors

michaelfranzl avatar dependabot[bot] 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.