Test whether a device has Flash enabled, Modernizr style

有没有一种方法可以测试设备是否支持Flash,类似于http://www.modernizr.com可以检测浏览器并向主体添加类的方式?


The template files created by Flash or Flashbuilder etc. have javascript checks in place to verify the user has the correct flash player version installed, if not they are given the option to download the player. You can replace this download link with anything you want so it'll fall back on whatever you choose if there is no flash player present. Alternatively you can use the User-Agent HTTP Header to determine if they are using an iOS device and eliminate the possibility of them running flash entirely and then assume that if they have anything else they can install the flash player (yes I'm a bit bitter).

链接地址: http://www.djcxy.com/p/84078.html

上一篇: 检测对视频元素的drawImage的支持

下一篇: 测试设备是否启用了Flash,Modernizr风格