Kurento Tutorial
  • Source Code

Tutorial 3: Video Call 1 to N with WebRTC

This web application consists on an one to many video call using WebRTC. In other words, this is an implementation of a video broadcasting application. There are two types of users in this application: 1 peer sending media (let's call it Presenter) and N peers receiving the media of the Presenter (let's call them Viewers). Thus, the Media Pipeline is composed by 1+N interconnected WebRtcEndpoints. To run this demo follow these steps:

  1. Open this page with a browser compliant with WebRTC (Chrome, Firefox).
  2. If you would like to be the Presenter of the communication, click on Presenter button. There can only be one of this kind of peer, and so, if the Presenter peer is already present, the application returns an error (see the the console).
  3. Grant the access to the camera and microphone. After the SDP negotiation the communication should start.
  4. In a different machine (or a different tab in the same browser) click on Viewer button to see the Presenter stream.
  5. Click on Stop to finish the communication. When Presenter clicks on Stop, the rest of Viewers (if any) ends the communication too.
Presenter Viewer Stop




    © 2014-2015 Kurento
    Universidad Rey Juan Carlos
    Kurento
    Naevatec