如何在播放网页浏览器MKV视频 [英] How to playback MKV video in web browser

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

问题描述

我试图与一个MPEG4视频codeC和AC3音频codeC可以使用Mozilla或Chrome浏览器在网上发挥了MKV视频。我曾尝试多种方法,包括原生HTML5,它播放视频,但没有音频,从我读过AC3是一个专有codeC所以它不支持codeCS包括在内。在code表示如下:

I am trying to make a MKV video with a MPEG4 video codec and AC3 audio codec available to be played online using Mozilla or Chrome. I have tried multiple methods including native HTML5, which plays back the video but no audio and from what I've read AC3 is a proprietary codec so it is not included in the supported codecs. The code for that was as follows:

<video width='1024' height='768' controls autoplay> 
<source src="path_to_src" type='video/x-matroska'</video>

然后我试图用VLC网页插件(我所知VLC可以正常播放的文件),但尚未得到发挥它的任何文件,似乎没有被很多一致性的例子使用此方法。以下是我迄今为止尝试过使用VLC插件:

I then tried to use the VLC web plugin (as I know VLC can play the files correctly) but have not yet gotten it to play any file, there doesn't seem to be a lot of consistency in the examples for using this method. Here is what I have tried so far using the VLC plugin:

<embed type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" 
width="1024" height="768" id="vlc" autoplay="yes" target="path_to_file"></embed>

这里的VLC网页。说要补充一点:

The VLC page here says to add this:

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
 codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab">

不过,codeBase的似乎没有了,并补充说,CLASSID到code以上还没有对文件的播放,影响存在。这两种方法导致所取得的VLC播放盒,但没有得到过出场和开发者控制台不显示任何错误。

But the codebase doesn't seem to exist anymore and adding that classid to the code above has no affect on the playing of the file. Both methods result in the VLC player box being made but nothing ever getting played and the developer console doesn't show any errors.

我的问题是没有人知道一个变通方法来获得AC3音频在本地HTML5播放器播放或者什么的正确语法对于VLC网页插件?或者有没有人有不同的球员干脆,他们将建议?任何和所有帮助AP preciated!

So my question is does anyone know a workaround to get AC3 audio to play in the native HTML5 player or what the correct syntax is for the VLC web plugin? Or does anyone have a different player altogether they would recommend? Any and all help appreciated!

推荐答案

HTML5和VLC Web插件是一个不走的我,但我可以用下面的设置得到这个工作:

HTML5 and the VLC web plugin were a no go for me but I was able to get this work using the following setup:

的DivX网页播放器

AC3音频解codeR

这里是HTML:

<embed id="divxplayer" type="video/divx" width="1024" height="768" 
src ="path_to_file" autoPlay=\"true\" 
pluginspage=\"http://go.divx.com/plugin/download/\"></embed>

DivX播放器似乎让视频和比原生的HTML5音频选项的更广泛的阵列,到目前为止我很IM $ P $通过它pssed。

The DivX player seems to allow for a much wider array of video and audio options than the native HTML5, so far I am very impressed by it.

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

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