Browsers don't warn that Adobe Flash Player is not installed

╄→гoц情女王★ 提交于 2019-12-08 08:57:47

问题


I've a computer with Windows Server 2003 without Adobe Flash Player in which Firefox (v3.6) and Safari coundn't play a video and the user wasn't warned about the missing plug in.

Is this a known issue? In that case is there any solution as web programmer (not as user)?

In case this is not a known issue or even if it is not suppous to happen, is there any way to know if the user has Adobe Flash Player installed to warn him in case not? (I'm using jQuery if that helps).

Thank you.


回答1:


You can use this jQuery plugin : http://plugins.jquery.com/project/jqplugin.

Usage (if the plugin /mimetype is enabled the properties returns true, otherwise returns false):

jQuery.browser.flash //Flash
jQuery.browser.sl //Silverlight
jQuery.browser.pdf //PDF format
jQuery.browser.java //Java
jQuery.browser.qtime //Quicktime
jQuery.browser.wmp //Windows Media Player
jQuery.browser.shk //Shockwave
jQuery.browser.rp //Realplayer



回答2:


The browser cannot inform the user by design. It does not know if a component is essential. See "graceful degradation" and "progressive enhancement" (google). You have to use Javascript to detect missing plugins and decide if you want to tell the user or just show alternative content. Google this: http://www.google.com/search?client=ubuntu&channel=fs&q=detect+flash&ie=utf-8&oe=utf-8




回答3:


Here's a jQuery plugin that will detect flash, prompt user to download it, etc: http://jquery.lukelutman.com/plugins/flash/

It is your responsibility as the developer to tell the user when he needs flash, not the browser's



来源:https://stackoverflow.com/questions/5171088/browsers-dont-warn-that-adobe-flash-player-is-not-installed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!