[英]VLC ActivX plugin not playing video in update IE9
I am using vlc ActiveX plugin on web browser IE9 to play video live streaming. 我正在Web浏览器IE9上使用vlc ActiveX插件来播放视频实时流。
Its work perfect in IE8 but when I update browser from IE8 to IE9 than it not playing video file or live straming. 它在IE8中的工作完美,但是当我将浏览器从IE8更新到IE9时,它无法播放视频文件或实时分层。
here is my code. 这是我的代码。
<object type="application/x-vlc-plugin" id="vlc" width="517" height="388" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
<param name="MRL" id="mrlVideo" value="" />
<param name="volume" value="50" />
<param name="autoplay" value="True" />
<param name="loop" value="false" />
<param name="fullscreen" value="false" />
<param name="wmode" value="transparent" />
<param name="toolbar" value="true" />
<param name="windowless" value="true" />
</object>
and in javascript I am using these 在JavaScript中,我正在使用这些
var vlc = document.getElementById("vlc");
var options = new Array(":rtsp-tcp");
var urlVideofile = "hppt://IP:portnumber/"
var id = vlc.playlist.add(urlVideofile, null, options);
vlc.playlist.playItem(id);
Here is attach image that showing what exactly error is coming 这是显示错误确切出现的附件图像
Any help is greatly appreciated 任何帮助是极大的赞赏
Thanks. 谢谢。
JavaScript is case-sensitive. JavaScript区分大小写。 You need to access
vlc.playlist
(not vlc.Playlist
), call vlc.playlist.add
(not vlc.Playlist.Add
) and vlc.playlist.play
(not vlc.playlist.Play
). 您需要访问
vlc.playlist
(不是vlc.Playlist
),调用vlc.playlist.add
(不是vlc.Playlist.Add
)和vlc.playlist.play
(不是vlc.playlist.Play
)。 IE9's JavaScript engine is more standards-compliant than previous versions of IE, which may have allowed case-insensitive access to ActiveX/COM APIs . IE9的JavaScript引擎比以前版本的IE更符合标准,后者可能允许不区分大小写地访问ActiveX / COM API 。
Additionally, a bug was introduced in VLC 2.0.6 that breaks the ActiveX API, so you will need to use VLC 2.0.5 or earlier. 此外,VLC 2.0.6中引入了一个错误 , 该错误会破坏ActiveX API,因此您将需要使用VLC 2.0.5或更早版本。 (Despite what is stated in #8627, this issue is not fixed in VLC 2.0.7, which appears to still include the 2.0.6 ActiveX plugin for some reason.)
(尽管在#8627中进行了说明,但在VLC 2.0.7中未解决此问题,由于某些原因,该问题似乎仍包括2.0.6 ActiveX插件。)
We have found the solutions as 我们发现解决方案如下
//var options = [":rtsp-tcp"]; //commented out
//replace the line above with this.Note the CSA key is pre-pended with:
var options = [":ts-csa-ck="+EncryptionkeyValue];
//options.push("ts-csa-ck=EncryptionkeyValue"); //commented out as its above now
var itemId = vlc.playlist.add(targetURL, "", options); // continue as normal
var id = vlc.playlist.add(urlVideofile, null, options);
vlc.playlist.playItem(id);
Its working fine for Browsers including IE8 which have highest version, IE9, IE10 , Chrome, and FF. 对于包括最高版本的IE8,IE9,IE10,Chrome和FF的浏览器,它的工作正常。
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.