Home » C++ Programming

Embedded VLC player works in IE8, not in IE9?


The code below works fine in IE8, but in IE9 the actual player is missing. The sounds&controls work, but no vid. What has changed? ActiveX plugin is local.

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metacontent="text/html; charset=utf-8"http-equiv="Content-Type"/><title>Vids</title><linkhref="main.css"rel="stylesheet"type="text/css"/></head><body><divid="player"><objecttype="application/x-vlc-plugin"id="vlcplayer"width="864px"height="540px"classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"><paramname="Volume"value="100"/><paramname="AutoPlay"value="true"/><paramname="AutoLoop"value="false"/></object></div><divid="controls"><inputtype="button"onclick="play();"value="Play"/><inputtype="button"onclick="pause();"value="Pause"/><inputtype="button"onclick="stop();"value="Stop"/><inputtype="button"onclick="mute();"value="Mute"/></div><h1>My vids</h1><ol><li><ahref="javascript:;"onclick='player("Vid1.flv");'>Click a vid!</a></li></ol><scripttype="text/javascript"language="javascript">var vlc = document.getElementById("vlcplayer");
	function player(vid) {
    try {
    	var options = new Array(":aspect-ratio=16:10", "--rtsp-tcp", ":no-video-title-show");
      var id = vlc.playlist.add(vid,'Video',options);
      vlc.video.fullscreen = true;
    catch (ex) {
	function mute(){
	function play(){
	function stop(){
	function pause(){ 
  function fullscreen(){

5 Answers Found


Answer 1


The feedback site for IE9 Beta is connect.microsoft.com/ie

What part of BETA don't you understand?

looks like you are missing a data/video attribute. The HTML5 spec requires that the browser does not spawn a request for empty scr and data attributes. Maybe setting the autoplay parameter to false will give you cross-browser behavior.

Posting a snippet is useless.... Please post a link to your working web site or a test page on a publicly accessible web site.


Answer 2

Thanks, Rob,

I understand beta very well, 'cause of I'm ex-MSFTE. But what I don't understand is how can a browser support HTML5 so tight even if HTML5 is not yet standard? And if it follows only HTML5 but not current then there_might_ be a problem. So, this not a feedback, I just asked where I'd start a troubleshooting; is it html/css/player plugin/whatever - that's why the code is here. And on some forums snippets work very well.

Anyway, tried to add data attribute - didn't work. Scr attribute is not supported in XHTML 1.0 Transitional.


Answer 3


look at your code... you have set autoplay=true when the playlist is empty at pageload.

Press F11 then select the Script tab, place a breakpoint on the player  function then press the 'Start Debugging' button.

If you are satisfied that it is not your coding then please submit an issue report.

Yes it is BETA.... I know its not RTM.. I know there are some real woozies in IE9 Beta that have to be fixed yet. You can submit issue reports at connect like other MSFT or Public 'testers'. Connect won't reply with a detailed response of why or why not either.. If it works  it works... if it doesn't, it hasn't been fixed yet or it is not in their mission statements (see Help>Whats new in IE9).

The Fat lady hasn't even stepped up to the podium yet.



Answer 4

It's not autoplay - autoplay just tells if the current playlist should be played automatically or not. It's only control and has no affect to video image rendering.


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure