There’s pretty big chance that once you set up Live Transcoding you’ll also need CDN to deliver your video streams in various bitrates.
We’ll show you how to distribute a live stream to your end-users with Live Transcoding HLS servers as HTTPS origins for your CDN service. In this case we’ll use Fastly, a real-time CDN that gives you total control over your content the ability to instantly update it.
Create HLS stream with DVR
If you followed our previous tutorial how to set up live transcoding stream you should already know how to go about it. Here, we just want to remind you that you can allow your users seek, rewind, fast forward your live stream by enabling DVR.
After the stream is created just copy its HLS playlist url, it will come handy when setting up a CDN:
In our example we’ll use https://live01.pandastream.com:51003/hello.m3u8 as the URL.
Adding Fastly as CDN
First, you’ll need to create a new service in Fastly.
- set Origin Server Address, in our case it is
- set Domain Name, in our case it is
Next step is to Activate SSL (TLS) for Fastly connections. SSL Options are available from the dropdown list for Service Settings. All you have to do is to set Use SSL for Connection to Yes.
All is left to do now is to deploy the configuration and activate it.
Done. You’ve set up Fastly as your CDN for Live Transcoding.