-
Notifications
You must be signed in to change notification settings - Fork 33
/
flash_detect.php
27 lines (21 loc) · 979 Bytes
/
flash_detect.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<p>
This application requires Flash browser plugin. Some functionality is also available using HTML5 (if WebRTC and/or transcoding is setup on this server). <script type="text/javascript" src="flash_detect_min.js"> </script>
<script type="text/javascript">
var updateWarning = false;
if(FlashDetect.installed)
{
document.write("Flash version detected: " + FlashDetect.major + "."+ FlashDetect.minor + " ");
if(!FlashDetect.versionAtLeast(30, 0))
{
document.write("Flash was detected but is too old to run this application. Upgrade your Flash plugin to proceed!");
updateWarning = true;
}
}
else
{
document.write("Flash was not detected in your browser: Flash plugin is required to use this application!");
updateWarning = true;
}
if (updateWarning) document.write("<B class=warning>Update to latest flash player: <a href=\"http://get.adobe.com/flashplayer/\" target=\"_blank\">http://get.adobe.com/flashplayer/</a> !</B>");
</script>
</p>