wi

webrtc.io

Abstraction for webRTC.

Showing:

Popularity

Downloads/wk

9

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

1.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

RTC.io

An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets.

Client

<script src="/rtc.io/rtc.io.js"></script>
<script>
    server = rtc.sync(server, [video1]);
    rtc.onSync(console.log('Connected to server' );
    rtc.onConnect('initialize video screen for stream');

    
    rtc.sync(serverIP, [list of arbitrary types]);
    rtc.addPeers();
    rtc.addPeer(peer, success(), fail());
    rtc.onConnect( do stuff);

</script>

Server

var rtc = require('rtc.io');
rtc.onSync(function( data){
    var peers = rtc.getConnectedPeers()
    for node in peers {
        if (node.page == 'chat'){
            rtc.connect(me,node);
        }
    }
});

rtc.sendPeer([list of peers]);
rtc.onSync();
rtc.getPeers();

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial