如何在浏览器中播放MKV文件? [英] How to play MKV file in browser?

查看:1558
本文介绍了如何在浏览器中播放MKV文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MKV 格式的视频文件,我想在浏览器中播放该文件而不进行转换,如何在浏览器中播放此文件格式?

I have a video file in MKV format, i want to play that file in the browser without converting, how can i play this file format in browser?

<video width="320" height="240" controls>
  <source src="movie.mkv" type="video/mkv">
  Your browser does not support the video tag.
</video>

我希望此文件始终以全屏模式播放。我的浏览器是chrome。

i want this file to be played in full screen mode always. My browser is chrome.

推荐答案

如果type属性设置为 video,它将拒绝播放Matroska / X-Matroska的。尝试完全删除type属性。

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

在对此问题进行一些实验后,我发现最佳解决方案是将mime类型设置为 video / webm

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

这篇关于如何在浏览器中播放MKV文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆