Serve your media Content

Once you have created your directory containing mpeg-dash segments you can publish it in a Web Server.

Most of the time it should just work when you point your player to that folder but in order to be sure you should check whether your server has the correct content types.

This is a list of the correct content types:

In case you want to access your content from a different domain from your player you should add a cross domain header as well:

Instead of an * you can but the exact domain of your player.

This is a list of how to accomplish the above operations in some web server.


In a file in the nginx configuration directory, usually /etc/nginx/conf.d create a new file containing

add_header 'Access-Control-Allow-Origin' '*';
          types {
	  		application/dash+xml     mpd;


In your htaccess file add the following:

AddType audio/mp4 .m4a
AddType video/mp4 .m4v
AddType application/ .ism
AddType application/dash+xml .mpd
AddType video/mp2t .ts
AddType application/ .m3u8
Header set Access-Control-Allow-Origin *

Microsoft IIS

In the web.config add the following:

            <remove name="LiveStreamingHandler" />
            <remove name="SmoothHandler" />
		<remove fileExtension=".m4f" />
		<remove fileExtension=".m4v" />
		<remove fileExtension=".mp4v" />
		<remove fileExtension=".m4a" />
		<remove fileExtension=".ts" />
		<remove fileExtension=".m3u8" />
		<remove fileExtension=".json" />
		<remove fileExtension=".key" />
		<remove fileExtension=".mpd" />
			<mimeMap fileExtension=".mpd"  mimeType="application/dash+xml" />
            		<mimeMap fileExtension=".m4a"  mimeType="audio/mp4" />
			<mimeMap fileExtension=".m4v"  mimeType="video/mp4" />
			<mimeMap fileExtension=".mp4v" mimeType="video/mp4" />
			<mimeMap fileExtension=".ism"  mimeType="application/" />
			<mimeMap fileExtension=".ts"   mimeType="video/mp2t" />
			<mimeMap fileExtension=".m3u8" mimeType="application/" />
			<mimeMap fileExtension=".json" mimeType="application/javascript" />
			<mimeMap fileExtension=".key"  mimeType="application/javascript" />
                <remove name="X-Powered-By" />
                <add name="Cache-Control" value="max-age=120000" />
                <add name="Access-Control-Allow-Origin" value="*" />