MCPcopy Create free account
hub / github.com/CreateJS/SoundJS / hasPlayerVersion

Function hasPlayerVersion

lib/flashaudioplugin-NEXT.js:564–570  ·  view source on GitHub ↗
(rv)

Source from the content-addressed store, hash-verified

562 /* Flash Player and SWF content version matching
563 */
564 function hasPlayerVersion(rv) {
565 var pv = ua.pv, v = rv.split(".");
566 v[0] = parseInt(v[0], 10);
567 v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
568 v[2] = parseInt(v[2], 10) || 0;
569 return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
570 }
571
572 /* Cross-browser dynamic CSS creation
573 - Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php

Callers 3

matchVersionsFunction · 0.70
canExpressInstallFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected