Peerjs: Is this project dead? What are recommended alternative services?

Created on 29 Nov 2015  ·  6Comments  ·  Source: peers/peerjs

It's hard to tell - the CDN links are all dead, and have apparently been dead for a long time. Most of the examples are 404s, and the externally hosted ones are broken due to the CDN. When I download the peer.js library manually and use it, it does nothing (does not call my peer.on callback, or make any web requests). Should I use peerjs or find an equivalent service?

Most helpful comment

Time marches on, thanks for a great project!

The project is not dead)

We just started to upgrade a codebase to typescript, remove old stuff.

I hope we'll be able to revive it

All 6 comments

@jameshfisher it works for me. only thing is chrome blocks getUserMedia on insecure origins, and firefox and chrome don't support calling getUserMedia in the way they constructed their shim. this however works as an alternative for me:

function webrtc(onMedia,onError)
{
    function notSupported(){};

    var which = (navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || notSupported).name;

    var args = {video: true, audio: true};

    if(which !== 'notSupported'){
        navigator[which](args,onMedia,onError);
    }else{
        onError('webrtc not supported');
    }
}

just pass in your onMedia and onError callbacks. easy damn peasy.

After trying several libraries, simple-peer is the best alternative and used in production by several new applications. Actively maintained and unlikely to ever become abandonware.

Use getusermedia instead of worrying about the changing spec.

Time marches on, thanks for a great project!

Time marches on, thanks for a great project!

The project is not dead)

We just started to upgrade a codebase to typescript, remove old stuff.

I hope we'll be able to revive it

@afrokick Please report the situation about project! :-)

.Живе Беларусь!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schweini picture schweini  ·  7Comments

geraldsamosir picture geraldsamosir  ·  6Comments

bilo1967 picture bilo1967  ·  7Comments

Kitanga picture Kitanga  ·  5Comments

lucastwong picture lucastwong  ·  3Comments