Html 通过身份验证在IIS服务器上安装VLC Web插件?

Html 通过身份验证在IIS服务器上安装VLC Web插件?,html,iis,stream,web,vlc,Html,Iis,Stream,Web,Vlc,在过去的一周里,我搜索了VLC论坛,基本上搜索了整个谷歌,试图找到一些与此相关的信息,因为我在从我的IIS服务器制作视频流时遇到了问题。 遗憾的是,我没能找到解决办法,这就是为什么我在这里寻求帮助 我的IIS 7.5服务器运行在Windows 7 64位服务器/计算机上。我使用Mozilla Firefox的VLC Web插件在浏览器中播放视频文件,但没有成功。 还应该注意的是,我已经将MIME类型.mkv作为video/x-matroska添加到IIS MIME类型中,所以这应该不是问题所在。

在过去的一周里,我搜索了VLC论坛,基本上搜索了整个谷歌,试图找到一些与此相关的信息,因为我在从我的IIS服务器制作视频流时遇到了问题。 遗憾的是,我没能找到解决办法,这就是为什么我在这里寻求帮助

我的IIS 7.5服务器运行在Windows 7 64位服务器/计算机上。我使用Mozilla Firefox的VLC Web插件在浏览器中播放视频文件,但没有成功。 还应该注意的是,我已经将MIME类型.mkv作为video/x-matroska添加到IIS MIME类型中,所以这应该不是问题所在。而且,我已经给了每个用户对整个www文件夹和文件的完全访问权限,所以这也不应该是问题所在。 我将它简化为一个非常基本的HTML文件“index.HTML”,并将视频文件保存在HTML页面的旁边。以下是我的HTML代码:


无标题文件
var vlc=document.getElementById(“vlc”);
函数mute(){
vlc.audio.toggleMute();
}
函数播放(){
vlc.playlist.play();
}
函数停止(){
vlc.playlist.stop();
}
函数pause(){
vlc.playlist.togglePause();
}





这段代码在本地运行得非常好,直接在Firefox中打开HTML文件而不使用web服务器。但是,当我把它放在iisweb服务器上时,play按钮就什么也不做了。它不能验证什么的。 以下是我将视频URL从web服务器直接输入VLC媒体播放器时VLC的日志:

qt4 warning: Input option: http-caching=1200
main debug: adding item `http://10.0.0.30/video.mkv' ( http://10.0.0.30/video.mkv )
qt4 debug: Adding a new MRL to recent ones: http://10.0.0.30/video.mkv
main debug: rebuilding array of current - root Spilleliste
main debug: rebuild done - 1 items, index -1
main debug: processing request item http://10.0.0.30/video.mkv node null skip 0
main debug: resyncing on http://10.0.0.30/video.mkv
main debug: http://10.0.0.30/video.mkv is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'http://10.0.0.30/video.mkv'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:220)
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\myuser\AppData\Local\Temp'
main debug: `http://10.0.0.30/video.mkv' gives access `http' demux `' path `10.0.0.30/video.mkv'
main debug: creating demux: access='http' demux='' path='10.0.0.30/video.mkv'
main debug: looking for access_demux module: 0 candidates
main debug: no access_demux module matched "http"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'http' path='10.0.0.30/video.mkv'
main debug: looking for access module: 2 candidates
access_http debug: http: server='10.0.0.30' port=80 file='/video.mkv'
main debug: net: connecting to 10.0.0.30 port 80
qt4 debug: IM: Setting an input
main debug: connection succeeded (socket = 1440)
access_http debug: protocol 'HTTP' answer code 401
access_http debug: Content-Type: text/html
access_http debug: Server: Microsoft-IIS/7.5
access_http debug: Authentication header: Negotiate
main warning: Unknown authentication scheme: 'Negotiate'
access_http debug: Authentication header: NTLM
main warning: Unknown authentication scheme: 'NTLM'
access_http debug: this frame size=1326
access_http debug: authentication failed for realm (null)
access_http debug: retrying with user=ServerAdmin
main debug: net: connecting to 10.0.0.30 port 80
main debug: connection succeeded (socket = 1440)
access_http debug: protocol 'HTTP' answer code 401
access_http debug: Content-Type: text/html
access_http debug: Server: Microsoft-IIS/7.5
access_http debug: Authentication header: Negotiate
main warning: Unknown authentication scheme: 'Negotiate'
access_http debug: Authentication header: NTLM
main warning: Unknown authentication scheme: 'NTLM'
access_http debug: this frame size=1326
access_http debug: authentication failed for realm (null)
main debug: net: connecting to 10.0.0.30 port 80
main debug: connection succeeded (socket = 1484)
access_mms error: error: HTTP/1.1 401 Unauthorized
main debug: no access module matching "http" could be loaded
main debug: TIMER module_need() : 11949.001 ms - Total 11949.001 ms / 1 intvls (Avg 11949.000 ms)
main debug: waitpipe: object killed
main error: open of `http://10.0.0.30/video.mkv' failed: (null)
main debug: finished input
main debug: thread ended
main debug: dead input
main debug: thread times: real 0m11.948683s, kernel 0m0.000000s, user 0m0.000000s
main debug: changing item without a request (current 0/1)
main debug: nothing to play
qt4 debug: IM: Deleting the input
main debug: TIMER input launching for 'http://10.0.0.30/video.mkv' : 11974.001 ms - Total 11974.001 ms / 1 intvls (Avg 11974.000 ms)
因此,从这个日志中我可以看到,VLC在通过windows NTLM登录身份验证与IIS服务器进行身份验证时遇到问题。我还尝试在没有登录系统的情况下设置apache服务器,成功地按照我的要求播放了文件,但我需要一个登录系统

所以我的问题是,有没有办法通过NTLM登录方法实现这一点? 如果没有,我如何管理它,例如ASP.net使用表单身份验证,或PHP使用会话,不管是哪一个,我只需要VoD流在登录系统后面,我将自己弄清楚如何将登录信息连接到NTLM方法


如果有任何帮助,我将不胜感激,因为我真的被困在这里了。

VLC不支持NTLM身份验证。

可能很晚了,但您可以使用cntlm()

将目标更改为
http://user:password@10.0.0.30/video.mkv
?这行得通吗?我试过你的建议,可惜也不行。/还有其他想法吗?