0.8.5 and 0.8.6 plugin compatible page

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
mzsolt
New Cone
New Cone
Posts: 1
Joined: 22 Jan 2007 20:14

0.8.5 and 0.8.6 plugin compatible page

Postby mzsolt » 22 Jan 2007 20:28

Hi,

I created a page which works well with the 0.8.5 mozilla plugin. Meanwhile the 0.8.6 is released and this page crashes at some method calls. It seems that 0.8.6 plugin is not fully compatible with the old API. The new API is only usable if the "VideoLAN.VLCPlugin.2" is included in the embed tag, right?
So i want to rewrite my page to detect the version of the plugin and if it is the new one include the new API's method calls etc. but it should be working with the old plugin as well...

How to detect "officially" if it is the old or the new version of the plugin?

I tried a suggestion from the new API's topic:

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


but it doesn't work for me...

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 44 guests