Page 1 of 1

Documentation:WebPlugin & ActiveX Clarification

Posted: 19 Aug 2010 09:30
by cctvcam
Hi,

I would like some clarification on the documentation and state of the Webplugin and ActiveX controls.

Reading the docs the old ActiveX api is now defunct and the new Webplugin should be used for both mozilla and IE. however the code sample only shows the
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
should this work in IE, or does the <object> tag still need to be used for IE? If so which is the correct clsid to use for the activex control.

9BE31822-FDAD-461B-AD51-BE1D1C159921 (exposes old API)
or
E23FE9C6-778E-49D4-B537-38FCDE4887D8 (exposes no API)

I have been using the ActiveX as this does display in IE, however the new API does not seem to be present, only the old API. Even with the old API the toggleFullscreen method does not work. ( I did see an old post hinting that this was a bug in older versions.) I am using 1.1.2.

Please can someone enlighten a vlc newbie on how to use the new api with IE from javascript.

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 22 Aug 2010 01:39
by Ilasir
I've been using this code for vlc, and it works with all versions as far as I know:

<!--[if IE]>
<object type='application/x-vlc-plugin' id='vlc' events='True' classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' >
<param name='mrl' value='' />
<param name='volume' value='50' />
<param name='autoplay' value='false' />
<param name='loop' value='false' />
<param name='fullscreen' value='false' />
</object>
<![endif]-->
<!--[if !IE]><!-->
<object type='application/x-vlc-plugin' id='vlc' events='True' >
<param name='mrl' value='' />
<param name='volume' value='50' />
<param name='autoplay' value='true' />
<param name='loop' value='false' />
<param name='fullscreen' value='false' />
</object>
<!--<![endif]-->

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 23 Aug 2010 10:56
by cctvcam
ok thanks for the code for multiple browsers, which version of the api do you use with this in IE?

if its the new version can you show me how you access it?

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 23 Aug 2010 17:36
by Ilasir
I don't know what you mean. I use whatever the api is for the vlc version I have installed.

Currently, it's 1.0.5.

Each release of vlc ships with the latest plugin version. If you can't get it to work, you may have to re-install vlc, and make sure you check the plugin box during install. Otherwise, I can't think what the problem is.

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 24 Aug 2010 13:28
by cctvcam
I finally found that the 9BE31822-FDAD-461B-AD51-BE1D1C159921 clsid works to show the current api for the activex. I did reinstall with 1.1.3 so I don't know if I had a local issue.

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 24 Aug 2010 22:42
by Ilasir
Okay. Glad you got that sorted out.

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 01 Sep 2010 15:58
by cctvcam
I had a bit of trouble with the code sample in one of the above posts. what worked for IE and firefox for me.

Code: Select all

<!--[if IE]> <object id='vlc' classid='clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921' codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width="500" height="370" > <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="True" /> <param name="Volume" value="100" /> </object> <![endif]--> <!--[if !IE]>--> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="640" height="480" id="vlc"> </embed> <!--<![endif]-->

Re: Documentation:WebPlugin & ActiveX Clarification

Posted: 02 Sep 2010 03:05
by Ilasir
I just checked my code in 1.1.4 and it works. But if the code you just posted works, there's no reason to worry about it.