Is there a way to check if the browser supports flash / silverlight?

I am making an application with SL / flash cards, and I am wondering if there is a way to check if the browser will be ported to silverlight support or not (ipad / iphone). And if it is not, I can use some kind of AJAX diagram in its place.

If it is possible to exchange platforms by testing against the host, how would I do it?

+3
source share
3 answers

Here you can use a small hack.

Make a simple flash movie as3 and make a call

try { navigateToURL(new URLRequest("javascript:flashCheck()"),"_self"); } catch (e:Error){} 

after which you can write a simple validation function in javascript (flashCheck () {}).

You know that this function is only available for as3 (swf), so you can determine what you need.

Hope this helps.

ps

and I'm sure you can do this trick with silverlight.

0
source

We have used this in the past, http://developer.apple.com/internet/webcontent/detectplugins.html

Silverlight does not work.

0
source

Source: https://habr.com/ru/post/1483631/


All Articles