Skip to content

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

Notifications You must be signed in to change notification settings

dasjack/webRTC.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

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');
</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);
        }
    }
});

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%