swf-player-version

Shockwave Flash Player version utility. GCC ADVANCED optimizations compatible.

Usage no npm install needed!

<script type="module">
  import swfPlayerVersion from 'https://cdn.skypack.dev/swf-player-version';
</script>

README

SWFPlayerVersion

Shockwave Flash Player version utility. GCC ADVANCED optimizations compatible.

// Test if SWF Player version is supported and output the actual version.
if (SWFPlayerVersion.isSupported('10.0')) {
  alert('SWF Player ' + SWFPlayerVersion.get() + ' is installed');
}

API

get()
  returns {?string} '#.#.#' or null.

  Get available SWF Player version. Result is cached.
isSupported(requiredString)
  requiredString {string} '#.#.#', '#.#', '#' or ''.
  returns {boolean} true if supported.

  Determine if available SWF Player meets version requirement.