Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tessantech/rtc-light

tessantech1.4kISC4.0.1TypeScript support: included

Verry light package to simplify Webrtc and make a videoconference in a few lines of code.

rtc, webrtc, simple, light, video, conference, real time

readme

rtc-light

Verry light package to simplify Webrtc and make a videoconference in a few lines of code.

Demo : https://github.com/Mfron-42/rtc-videconference

Short example

navigator.mediaDevices.getUserMedia({video : true})
    .then(stream => {
        let receiver : RTCConnection = undefined;
        let initiator : RTCConnection = undefined;
        receiver = new RTCReceiver(stream, infos => initiator.addInformations(infos));
        initiator = new RTCInitiator(stream, infos => receiver.addInformations(infos));
        receiver.onStream(stream => console.log("Remote stream received", stream));
        initiator.onStream(stream => console.log("Remote stream received", stream));
     });