By default, our CDN supports HLS streaming: set up an HLS stream on your origin and we will proxy that to the end-users.
Configure the service
- Create a CDN Resource in the Control panel
- Configure cache settings for playlists (.m3u8) and video segments (.ts)
You can specify the settings either on your origin or in the Control panel.
Origin setup recommendations:
Set Cache-Control HTTP header to 1-minute. By default, CDN servers inherit all HTTP headers from your origin and follow the stated directives. For playlists set a 1-2 seconds directive.
Control panel setup recommendations:
For video segments (.ts). Go to the Resource settings -> Show advanced settings -> Cache.
Set Cache Expiry option to 1 minute.
Set Override Origin Cache Settings option to 0.
If you don’t see Override Origin Cache Settings option, click on Add option and choose it from the menu.
For playlists. (.m3u8). Go to the Rules section -> Add rule.
Put any name in the Rule name field.
Choose Regular Expression and specify the following pattern: .*\.m3u8$
In the Cache Settings section click on Add option and add Cache Expiry option. In the drop-down list pick Manually and set the value to 2.
- Integrate your stream with the CDN.
Change your domain address in URLs to your CNAME. Сheck CNAME settings beforehand.
For example, a stream URL from origin: http://domain/playlist.m3u8
The stream URL from CDN: http://cdn.domain/playlist.m3u8
You can check your stream in any player that supports online HLS streaming (for example, VLC).
- Share your stream
Publish the updated stream URL on your website.
If you expect more than 100 viewers from different locations, we strongly recommend you to activate origin shielding to improve failover capability.