Code: Select all
if (typeof oVLC.playlist != "undefined")
// do things for 0.8.5.1> Plugin
else
// do things for 0.8.5.1< Plugin
does the following page works for you:<EMBED pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="640"
height="480"
name="vlc">
Code: Select all
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0" id="vlcIE" events="True">
<param name="MRL" value="" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="true" />
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" progid="VideoLAN.VLCPlugin.2" name="vlcMoz" id="vlcMoz" autoplay="true" loop="yes" hidden="no" />
</object>
Code: Select all
if (typeof oVLC.VersionInfo == "undefined")
// do things for 0.8.5 and before
else if (oVLC.VersionInfo.indexOf("0.8.6") != -1 )
// do things for 0.8.6
else (oVLC.VersionInfo.indexOf("0.9.0") != -1 )
// do things for 0.9.0, etc...
Code: Select all
// VLC detection.
for(var i=2; i>0; i--){
vlcVersion = 0;
try{
var oVLC = new ActiveXObject("VideoLAN.VLCPlugin." + i);
vlcVersion = i;
return;
}
catch(e){
}
}
I've implemented this idea in other way: I don't append the VLC object into document until the whole document and it's other objects are properly initiated. This reduced the amount of crashes both in IE and FF in cases where document is refreshed.Maybe stopping the video on the unload event would help to prevent the lockup? (havn't tried that yet)
Something like: <body onunload='document.getElementById('vlc').playlist.stop()'>
this sounds like a bug in the VLC plugin, i've heard of other related issues. Unfortunately, I haven't been able to reproduce this problem, so i'm guessing this problem is specific to your machine. Can you give me some details about your locale, VLC install path, app working directory, etc..There seems to be a problem when it is used with Java/SWT and Windows:
frame = new OleFrame(parent, SWT.NONE);
OleControlSite controlSite = new OleControlSite(frame, SWT.NONE, "VideoLAN.VLCPlugin.1");
controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE | OLE.OLEIVERB_HIDE);
doVerb(...) shows a modal console window saying that content is stored in
vlc-help.txt. After closing the console the complete application exits.
It works fine with 0.8.5, but not with 0.8.6. Using "VideoLAN.VLCPlugin.2" does not help either. Any ideas?
Users browsing this forum: No registered users and 14 guests