How to play MKV file in browser?

余生颓废 提交于 2019-12-03 05:52:33

It will refuse to play Matroska if the type attribute is set to video/x-matroska. Try removing the type attribute completely.

After some experimentation with this issue, I've found the best solution is to set the mime type to video/webm.

david souza

I think Chrome doesn't play .mkv videos.

By the way, 'type' is mime-type, and mkv's mime type is video/x-matroska.

Try:

source src="movie.mkv" type="video/x-matroska"

If this works, maybe the sound will be muted, so you can try type="video/mp4".

MiOVieira

I added the IIS Mime Type as (.mkv - video/webm) over the IIS option and it worked fine.

I know this is old, but the best way is sending mkv to google drive. Google drive can play mkv with no problem. I don't know if you know, but you can have 15gb free on google drive, and you can embed it on your website.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!