Skip to main content

Dash Playback with CMAF

What Is CMAF (Common Media Application Format)?

The Common Media Application Format (CMAF) is essentially a new format to reduce HTTP delivery latency. It is a new standard that aims to reduce the cost, complexity, and latency of streaming (typically 3-5 seconds). CMAF can be used in DASH or HLS. Both LL-DASH (Low Latency Dash) and LL-HLS (Low Latency HLS) are supported by Ant Media Server in the CMAF format.

How to use CMAF

In Ant Media Server v2.4.3 and earlier, you must enable it in your application's configuration file. It is now possible to enable it directly from the Ant Media dashboard starting with version 2.5.0.

To play Dash stream, provide streamId as the name and dash as the playOrder parameters in the URL shown below.


In order to enable the dash programmatically, follow below steps:

1. Open the following file with your favorite editor


2. Enable DASH by adding the following property to the file above.


If you want to enable LL-HLS (an experimental feature), you also need to set the following properties:


3. Restart the Ant Media Server

sudo service antmedia restart

There are a few more options for CMAF and their default values. You can assume that the following values are in use if they are not specified in the properties file:

#Duration of segments in mpd files.
#Fragments are a property of fragmented MP4 files. Typically a fragment consists of moof + mdat.

#Target latency

#DASH window size. Number of files in manifest

#DASH extra window size. Number of segments kept outside of the manifest before removing from disk

#Enable low latency dash. This settings is effective if dash is enabled

Note: If you're using Dash streaming with ABR enabled, make sure the following property is enabled in your application's file.


The value is false by default. Check here for more information on this property.

Share feedback