Browsers don't warn that Adobe Flash Player is

2019-05-29 21:51发布

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.

3条回答
在下西门庆
2楼-- · 2019-05-29 22:14

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
查看更多
手持菜刀,她持情操
3楼-- · 2019-05-29 22:28

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

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-05-29 22:29

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

查看更多
登录 后发表回答