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.

blackgiulia
blackgiulia

放眼四野直至星穹,追溯时光直至永恒,需要思考的事情太多,每个生命的时间太少

comments powered by Disqus
Next
Previous