fishdude / meteor-RTCMultiConnection

A library for cross-browser media streaming, screen sharing, data/file sharing, renegotiation, and much more. An all-in-one wrapper for webRTC API packaged for Meteor!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

meteor-RTCMultiConnection

Meteor package for RTCMultiConnection- a webRTC api wrapper for all your cross-browser media streaming needs!

example usage:

mrt add RTCMultiConnection
js
var connection = new RTCMultiConnection();

    connection.session = {
        audio: true,
        video: true
    };

    connection.onstream = function(e) {
        document.body.appendChild(e.mediaElement);
    };

    connection.connect()


    Template.foo.events({
      'click #init': function () {
        this.disabled = true;
        connection.open();
        console.log("connection initiated");
      }
    });
html
<template name="foo">
 	<button id="init">Open New Connection</button>
</template>

About

A library for cross-browser media streaming, screen sharing, data/file sharing, renegotiation, and much more. An all-in-one wrapper for webRTC API packaged for Meteor!


Languages

Language:JavaScript 100.0%