Getting started with Kurento WebRTC

Today we are going to try kurento media server and create a simple webrtc application.

Kurento is an open-source media server with WebRTC support. So if your customer wants to integrate video/audio chat on his website Kurento may solve this problem.

This is a sample video of what we are going to do:

So let’s start. First of all you should install Kurento media server(KMS) on your local computer. These steps can be viewed here.

Most KMS apps consists of 3 parts: client(browser), application server(like node.js where we call KMS API) and media server itself. The media server is like a constructor. To create it you should create a so called pipeline – a container where all of your media objects will live. And then just add different media objects to the pipeline and implement the features you need.

Create a project folder and insert bower.json file:

Then run
bower install
to install all dependencies.

So let’s create a simple html page. There will be 2 video tags. The first one will show us a live video from our webcam. The second one will push video stream from our webcam to KMS, and then push it back to our browser.

Create js folder in your project and add index.js:

That’s all. Hope I helped you a bit )

Project files

4 Comments

  1. Benny

    Hi Man, I am trying your demo which is awesome. In that the local stream works perfectly. But the remote stream doesn’t appear. I check that the KMS Server working or not which the result is that all ports are opened (8888, 8433) and which are listening.. Please help me i am strucked.. This one is decide my carrier.

  2. sagar

    Hi ,

    I want to use video from my Amazon S3 bucket to stream using kurento & nodejs.
    Can you please help me? if you have any reference code then it will be better.
    Please guide.

    Thanks,
    Sagar

Leave a Reply

Your email address will not be published. Required fields are marked *