A typescript library for simplifying the use of Kurento in Node.js.
Kurento Media server is controlled through the API it exposes, so we, the application developers use client implementations like
kurento-client-js to interact with the media server.
The problem with
kurento-client-js is that the package was automatically generated, therefore the source code is not readable, hard to use and requires a lot of repetitive code. The API becomes even harder to handle as the application becomes larger and uses more then one streaming protocol. Therefore I have created a simple library that simplifies the initialization process of the common endpoints types (And I even handles some bugs in the library for you).
npm i --save lib-kurento
An example for creating a pipeline with two types of sources, RTSP and RTP that are sent to clients through WebRTC:
;;; // get sdp from somewhere; // get sdp from client using any kind of a signaling communication;);
A very simplified example for recording a RTSP feed from an IP camera to a MKV file: