embedding CDN for low latency WebRTC streaming

Deploying CDN
for low latency WebRTC streaming

Here we show an example of deploying the minimal CDN configuration for low latency WebRTC streaming based on Web Call Server

The scheme below shows a minimal CDN configuration example based on 3 servers in a European data center: 1 Origin server and 2 Edge servers.

  • Origin is the server configured for publishing media streams. It shares streams to other CDN servers.
  • Edge is the server configured for sharing streams to viewers. It pulls streams from Origin or Transcoder servers and does not pass them to other CDN servers.


The low latency WebRTC streaming CDN works according to the following principle: Publisher sends a stream to the Origin server. Subscriber requests a stream from the Edge server. Edge server pulls stream from the Origin server. As a result, the stream goes from Origin to Edge and then to the Subscriber who requested this stream.

CDN low latency WebRTC streaming sheme of a solution for deploying


Web Call Server installation to CDN servers

1. Install CentOS 7 x86_64 to a server with the following minimal requirements or choose VPS alike:

  • 2 Gb RAM
  • 10 Gb HDD or SSD
  • 1 CPU core


2. Set server hostname in /etc/hosts, check availability


3. Install epel-release

yum install epel-release

4. Install wget

yum install wget

5. Install JDK

yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

6. Download WebCallServer latest build installation package


7. Install WCS

tar -xvzf download-wcs5.2-server.tar.gz 
cd FlashphonerWebCallServer-5.2.xxxx 

8. Start WCS

systemctl start webcallserver

9. Check if server started successfully

tail -f /usr/local/FlashphonerWebCallServer/logs/flashphoner.log

10. Activate your license

cd /usr/local/FlashphonerWebCallServer/bin 

Servers setup

Add to every server configuration file the following settings (server domain names are examples):

  • Origin EU
  • Edge 1 EU
  • Edge 2 EU

Servers should be restarted after setup.


Open Two Way Streaming example page on o-eu1 server and publish a stream from web camera or virtual camera, a cyclic video with countdown timer from 10 minutes to 0, for example

CDN low latency WebRTC streaming Two Way Streaming

Open Player example page on e-eu1 and e-eu2 servers and play the stream

CDN low latency WebRTC cdn play 2edges

Download Web Call Server 5

System requirements: Linux x86_64, 1 core CPU, 2 Gb RAM, Java

    Download Now    


  1. wget
  2. Unpack and install using ''
  3. Launch server using command 'service webcallserver start'
  4. Open the web interface https://host:8444 and activate your license


If you are using Amazon EC2, you don't need to download anything.

Launch WCS5 on Amazon EC2


Web Call Server Monthly Subscription

$145 per month




Related Articles