简体   繁体   English

查找当前版本和Adobe最新版本的Flash

[英]Find current version AND Adobe's latest version of Flash

Recently, we found that Firefox had made a change towards plugins, such that the user will be temporarily blocked from running them if they are not using the latest version. 最近,我们发现Firefox对插件进行了更改,因此,如果用户未使用最新版本,则会暂时阻止用户运行它们。 Our site requires Flash to play sound and interact with the user's webcam/microphone, so we need to do whatever we can to ensure they're not getting these warnings. 我们的网站要求Flash播放声音并与用户的网络摄像头/麦克风互动,因此我们需要尽力确保他们没有收到这些警告。

One way suggested to me is to create a small Flash control, and wait for it to tell Javascript that it's been initialized. 向我建议的一种方法是创建一个小的Flash控件,然后等待它告诉Javascript它已被初始化。 If not (and the user is using Firefox) then they are taken to a page prompting them to update. 如果不是(并且用户使用的是Firefox),则会将他们带到一个页面,提示他们进行更新。 This may work, but I worry about its reliability, and about running it on every page in our site. 这可能可行,但是我担心它的可靠性以及是否在我们站点的每个页面上运行它。

Alternatively, I've been researching a way to use Javascript to detect versions, without making a Flash control. 另外,我一直在研究一种使用Javascript来检测版本而无需使用Flash控件的方法。 I not only need the user's current version of Flash, but also the version Firefox will expect - and I haven't found an autonomous way of doing so. 我不仅需要用户当前的Flash版本,还需要Firefox期望的版本-而且我还没有找到一种自动的方式。 I don't want an admin to have to change a small value each time Adobe releases a new version. 我不希望管理员每次Adobe发布新版本时都必须更改较小的值。 Does anyone have any advice how I could find Flash's latest available version, or an alternate way to solve my problem? 有人对我如何找到Flash的最新可用版本或解决我的问题的替代方法有任何建议吗?

我建议您看看SWFOjectExpress Install选项,它们应该可以大大简化升级。

I just noticed someone upvoting this question, so I thought that I would provide my eventual solution, which I think reduced the impact of a recent issue where Firefox blocked the most recent edition of Flash, pending Adobe's fix. 我刚刚注意到有人支持这个问题,所以我认为我会提供最终的解决方案,我认为这减少了最近的问题的影响,在此问题中,Firefox阻止了Flash的最新版本,尚待Adobe修复。

Basically, I went with a variation on the second paragraph in my question. 基本上,我对问题的第二段进行了修改。 It does not direct the user to a new page; 它不会将用户定向到新页面。 instead, it opens a dialog over the current page that explains it's having issues communicating with Flash. 相反,它将在当前页面上打开一个对话框,以说明与Flash通讯时出现问题。 (It does not specifically say "Your Flash is out of date" because this can also happen if the browser is hiding flash under a Yes/No user dialog). (它没有具体说“您的Flash已过期”,因为如果浏览器在“是/否”用户对话框下隐藏Flash,也会发生这种情况)。 It also contains a small fake flash object, with the idea being that if the browser wants to display a security warning, accept prompt, etc., it can do it inside that space. 它还包含一个小型的伪造Flash对象,其思想是,如果浏览器想要显示安全警告,接受提示等,它可以在该空间内进行操作。

The dialog goes away on its own if said Flash control ends up making its callback to JavaScript. 如果上述Flash控件最终对其JavaScript进行回调,则该对话框将自行消失。 It also installs a variable under sessionStorage so we don't bother checking for it again (Flash takes enough time on some computers that you might see the dialog for a split second). 它还在sessionStorage下安装了一个变量,因此我们无需再检查它(Flash在某些计算机上花费了足够的时间,您可能会很快看到对话框)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在IE7上检测Adobe Flash版本-Vista - Detecting adobe flash version on IE7 - vista 链接到最新版本的 jQuery - Linking to latest version of jQuery 带有转义字符的jQuery查找功能在最新版本中不起作用 - jQuery find function with escape characters not working in latest version 使用 JavaScript 从数组中查找最新版本的文件名 - Find latest version of file name from array using JavaScript 在React Router的最新版本中,如何在首页“ /”中嵌套路由 - In React router's latest version, how to nest routes in the homepage “/” 如何使用 Nodejs 永久删除最新版本的 S3 Object - How to permanently delete latest version of S3 Object using Nodejs 需要帮助找出为什么当前代码不能与最新的最新(1.6.4)版本的JQuery一起使用 - Need help to figure out why current code does not work with current latest (1.6.4) version of JQuery jQuery代码适用于1.7.1版,但不适用于最新版本 - jquery code working with version 1.7.1 but not with latest version 为特定的ie版本提供flash版本,提供js版本 - provide a flash version for specific ie version otherwse provide a js version 如何用Javascript显示Flash版本 - How to display Flash version in Javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM