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?
@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! :-)
.
Живе Беларусь!
Most helpful comment
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