GithubHelp home page GithubHelp logo

peer's Issues

on add stream

Should it be in peer or in some plugins such as video, audio, etc?

peer.to.peer

method to to bind a peer connection to an other one (just event delegation)

peer and media?

Peer initialize a peer connection and is independent from media implementation.

peer and plugins

some plugins extend a peer with some functions. For example channel add a send method to send data through a data channel.

peer.send = function(data) {
  channel.send(data);
};

if the channel is not create yet, send will trigger an exception. Is there a way to have something cleaner?
May be send should be in the peer module and emit an event hook.

peer and doors

Some plugins can be asynchronous (like turn for example) and we could add a door in peer for these plugins which trigger a ready event once the door is unlocked. For example we don't want to start a handshake (signal) before we get the turn server information (turn).

trickle ice

trickle ice allows to accelerate the session handshake by sending ice candidates asynchronously (instead waiting the sdp to be ready). But we should not set the ice candidates until a remote description is set...there is two solutions:

  • slow down handshake...bah
  • or may be check connection state change on each peer

congestion

Peer.prototype.local = function(session) {
    var sdp = session.sdp;
    var split = sdp.split("b=AS:30");
    if(split.length > 1) {
        sdp = split[0] + "b=AS:1638400" + split[1];
    }
    session.sdp = sdp;
    this.connection.setLocalDescription(new Session(session));
};

we should control the flow and the congestion

cleanup

clean events and trigger an event that can be used by plugins.

use and streams

The handler use should accept streams. A good example is channel, the plugin channel should be a duplex stream but we should be able to add it as a plugin to peer.

offer/anwer and constraints

'wedge' offer and answer constraints on offer/answer. It makes sense to create a constraint module which merge and format multiple constraints.

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.