EXPERIMENTAL, INCOMPLETE: Node and browserify compatible integration layer for the Janus WebRTC gateway
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples Start working on simple example Feb 13, 2014
test Remove incorrect comment Feb 21, 2014
.gitignore Initial commit Feb 12, 2014
.travis.yml Go back to the parent directory once janus is running Feb 13, 2014
AUTHORS Initial commit Feb 12, 2014
LICENSE Initial commit Feb 12, 2014
README.md more comments Feb 13, 2014
docs.json gendocs Feb 13, 2014
index.js more comments Feb 13, 2014
package.json Use patched hyperquest version Feb 21, 2014
session.js Set withCredentials to false to avoid CORS exceptions Feb 21, 2014

README.md

rtc-janus

An in progress node and browserify compatible integration layer for the janus WebRTC Gateway.

NPM

Build Status experimental

Example Usage

var async = require('async');
var janus = require('rtc-janus');

janus('http://localhost:8088/janus', function(err, session) {
  if (err) {
    return console.error(err);
  }

  // activate the required plugins
  async.map(
    ['streaming', 'videocall'],
    session.activate.bind(session),
    function(err) {
      console.log(arguments);
    }
  );
});

Reference

JanusSession

Create a new JanusSession instance

activate(namespace, callback)

Activate the specified plugin. A plugin can be specified by it's full namespace (e.g. janus.plugin.streaming) or if it is a standard janus plugin through just it's id (e.g. streaming).

connect(uri, callback)

Create a new connection to the janus gateway

disconnect(callback)

Disconnect from the gateway

License(s)

Apache 2.0

Copyright 2014 National ICT Australia Limited (NICTA)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.