Streaming Mkv in Chrome From Nginx Server

Recently I setup nginx server with default modules and find that streaming the MP4 container format with the H.264 video codec and the AAC audio codec is supported by Chrome. But streaming the MKV container format with the same video and audio codec is not supported. Chrome starts to download the file after I click the link. Actually, there is no MKV type in nginx mime.types file. So I add video/webm mkv; to the file and it works.

For more video codec and audio codec supported by different browsers, reference Media formats supported by the HTML audio and video elements.

comments powered by Disqus