Documentation:WebPlugin & ActiveX Clarification

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
cctvcam
Blank Cone
Blank Cone
Posts: 29
Joined: 20 Jul 2010 15:29

Documentation:WebPlugin & ActiveX Clarification

Postby cctvcam » 19 Aug 2010 09:30

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.

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Documentation:WebPlugin & ActiveX Clarification

Postby Ilasir » 22 Aug 2010 01:39

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]-->

cctvcam
Blank Cone
Blank Cone
Posts: 29
Joined: 20 Jul 2010 15:29

Re: Documentation:WebPlugin & ActiveX Clarification

Postby cctvcam » 23 Aug 2010 10:56

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?

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Documentation:WebPlugin & ActiveX Clarification

Postby Ilasir » 23 Aug 2010 17:36

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.

cctvcam
Blank Cone
Blank Cone
Posts: 29
Joined: 20 Jul 2010 15:29

Re: Documentation:WebPlugin & ActiveX Clarification

Postby cctvcam » 24 Aug 2010 13:28

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.

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Documentation:WebPlugin & ActiveX Clarification

Postby Ilasir » 24 Aug 2010 22:42

Okay. Glad you got that sorted out.

cctvcam
Blank Cone
Blank Cone
Posts: 29
Joined: 20 Jul 2010 15:29

Re: Documentation:WebPlugin & ActiveX Clarification

Postby cctvcam » 01 Sep 2010 15:58

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]-->

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Documentation:WebPlugin & ActiveX Clarification

Postby Ilasir » 02 Sep 2010 03:05

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.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests