Alexander Abramovich
Alexander Abramovich

Reputation: 11438

Detecting Flash version from JavaScript

I've seen two answers:

  1. Adobe Flash Detection Kit - Detect Flash version using JavaScript
  2. JavaScript routines only: http://www.prodevtips.com/2008/11/20/detecting-flash-player-version-with-javascript/

Simple questions:

  1. are the detection algorithms, described above, identical and if not - which way is better?
  2. Will they work the same for desktop and mobile browsers (both iPhone/iPad and Android)?

Upvotes: 2

Views: 760

Answers (1)

tonycoupland
tonycoupland

Reputation: 4247

The two methods are not identical but I would recommend using the Adobe provided one since it is more likely to remain functional in future updates to the Flash Player.

Alternatively, you could use SWFObject as recommended by the posters in this thread - Cross Browser Flash Detection in Javascript

And not worry about the implementation :)

There is no reason that any of these scripts will not run in Safari on the iPad/iPhone or other browsers on Android devices.

Upvotes: 1

Related Questions