The web application obtains RTSP streams through dynamic user input and displays them on the main web page using WebRTC. Multiple streams can be played at a time along with functionality for starting and stopping the streams. The web application has been implemented in Node JS.
The application requires the Kurento Media Server to be installed and deployed on device running the application. Installation Guide: Kurento Installation Guide.
The server is expected to run on localhost:8888 (the default in Kurento).
-
Clone the repo to your machine.
-
Install the npm dependencies:
npm install
-
For testing purposes, you can simply generate a self-signed certificate using an openssl generated RSA key. A suitable resource for this purpose (any alternate method also works): Sample Keygen example. This step is important since Kurento needs an https URL to function.
-
Name the key
key.pem
and name the certificatecert.pem
and keep them in the project root directory. -
Run the application with:
npm start
-
The application will run on https://localhost:8443 by default.
This is experimental code and needs added functionality for session handling as well STUN/TURN configuration in the Kurento Media Server before it can be used in production. For the latter, Kurento documentation is easy to understand:- STUN/TURN