light-rtc
    TypeScript icon, indicating that this package has built-in type declarations

    1.6.0 • Public • Published

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

    Install

    npm i light-rtc

    DownloadsWeekly Downloads

    8

    Version

    1.6.0

    License

    ISC

    Unpacked Size

    22.2 kB

    Total Files

    12

    Last publish

    Collaborators

    • mfron-42