开发者

GWT check if flash is installed

开发者 https://www.devze.com 2022-12-12 02:31 出处:网络
Is there a way in开发者_开发知识库 GWT to check if the browser running is supporting Flash?Check out swfobject, and particularly you might want to check out this method:

Is there a way in开发者_开发知识库 GWT to check if the browser running is supporting Flash?


Check out swfobject, and particularly you might want to check out this method:

swfobject.hasFlashPlayerVersion(versionStr)

API docs here.

Of course, if swfobject is too big you could just check the sources to see how they do it. I'm not sure if it's possible that you could get a proper return value from that method even if the Flash player is somehow disabled but in that case I suppose you could simply try and embed a swf with swfobject and see if it worked, there's a callback that tell's you wether the embedding was successful or not, check the api docs for more info.


The simplest solution was to incorporate the Flash detection KIT as a native java script call.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号