使用 Javascript 检查 Flash 播放器版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3652480/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 01:50:19  来源:igfitidea点击:

Checking Flash player version using Javascript

javascriptflash

提问by manraj82

Is it possible to check the version of the Flash Player installed in a browser using Javascript?

是否可以使用 Javascript 检查浏览器中安装的 Flash Player 的版本?

回答by Buhake Sindi

You can check an example here.

您可以在此处查看示例。

回答by trejder

There is a nice, lightweight JavaScript Flash Detection Library, which is smaller and more convenient than using SWFObject. You should consider it, if you only want to check if Flash is installed, what version of Flash Player is installed etc., but you're using different method of playing FLVmovies.

有一个不错的轻量级JavaScript Flash 检测库,它比使用SWFObject更小更方便。您应该考虑一下,如果您只想检查是否安装了 Flash,安装了什么版本的 Flash Player 等,但您使用的是不同的播放FLV电影的方法。

SWFObjectshould be considered only, if you're also using it for playing Flash movies. For just checking, if Flash is installed or what version of Flash player is installed, it is to heavy, in my opinion.

SWFObject的应该算是唯一的,如果你还用它播放Flash动画。只是检查一下,如果安装了 Flash 或安装了什么版本的 Flash 播放器,我认为它很重

回答by Claude Vedovini

You should have a look at swfobject2: http://code.google.com/p/swfobject/

你应该看看 swfobject2:http: //code.google.com/p/swfobject/