sylvain121 / node-webrtc-endpoint

h264 webrtc endpoint test for nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-webrtc-endpoint

h264 webrtc endpoint for nodejs

install

npm install node-pion-webrtc --save

##usage

const webrtc = require('node-pion-webrtc');
const localOffer = webrtc.init(sdpOffer,                    // browser sdp offer.
                               commandDataChannelCallback,  // function (msg: string)
                               controlDataChannelCallback,  // function (msg: string)
                               infoCallback                 // function (msg: string)
); 
                                         // Return the local offer to be send to browser

webrtc.writeFrame(h264Frame); // node buffer of H264 frame

About

h264 webrtc endpoint test for nodejs

License:MIT License


Languages

Language:Go 48.5%Language:C++ 31.5%Language:JavaScript 10.2%Language:C 6.5%Language:Python 2.0%Language:Makefile 1.3%