如何检测Flash Player是否在使用JavaScript的浏览器中被禁用?

问题描述:

我知道如何检测浏览器中是否安装了Flash播放器。我正在使用 swfobject 的hasFlashPlayerVersion()函数。但是,我似乎无法找到任何文档如何检测插件是否安装,只是禁用。我在 Flash Player检测工具包中看不到任何文档它可以检查插件是否被启用。

I know how to detect if Flash player is installed in a browser. I'm using the hasFlashPlayerVersion() function of swfobject for that. However, I can't seem to find any documentation on how to detect if the plug-in is installed and just disabled. I didn't see any documentation in the Flash Player Detection Kit that checks if the plug-in is enabled either.

你可以在不可见的swf中调用一个javascript调用,浏览器的JavaScript。如果发生超时,那是因为浏览器没有安装Flash播放器,或者Flash播放器已被禁用。

You could make a javascript call in an invisible swf that communicates with the browser's javascript. If a timeout occurs, then it is because the browser does not have flash player installed, or the flash player has been disabled.

getURL("javascript:jsfunction();");