Flash plugin detection in Internet Explorer v7??
I am working on MP3 player app that uses navigator.plugins array in javascript to detect
the client Shockwave Flash plugin version. This works in DOM based browsers such as
Firefox and Safari, and also in Internet Explorer 5.0 on Mac OSX. I have been looking
at the detection code that Flash generates when the file is published, but I can't see what
would be different for detecting plugin verion in Internet Explorer v7.
I have a client/friend who has a new laptop and I wanted to show her the app but it would
not load correctly due to plugin detection failure. I asked my sister who also has and uses
Windows to test it and for her it would also not work in Internet Explorer v7; plugin version
detection fails.
Q: What is different for detecting plugin verion in Internet Explorer v7 (Windows, or any
other platform it might be run on)?
Thank you for time and attention.
JK
code I use to detect plugin versions:
clientObj.getSwfPluginVers = function()
{
var UA = clientObj.nav_ua;
var outStr = '';
if(clientObj.namePat.test(UA)) // for Opera v8x (?)
{
for(var i = 0; i < navigator.plugins.length; i++)
{
if(navigator.plugins.name == clientObj.hold)
{
continue;
}
else
{
if(navigator.plugins.name == "Shockwave Flash")
{
clientObj.swfVers = navigator.plugins.description;
}
}
clientObj.hold = navigator.plugins.name;
}
}
else
{
for(var i = 0; i < navigator.plugins.length; i++)
{
if(navigator.plugins.name == "Shockwave Flash")
{
clientObj.swfVers = navigator.plugins.description;
}
}
}
}
Then more code to reduce to single digit version.