Is Silverlight supported?

I'm a keen advocate of feature detection opposed to device detection. I'd like to be able to detect whether a browser (mobile or otherwise) supports Silverlight.

I've had a good google and found this Silverlight supported user agent but looking at the last comment it does not seem to be up to date.

There is also this SO question Is there a way to test if a browser supports flash/silverlight? But it doesn't seem to answer the question. Detecting if Silverlight is installed is different to detecting support for Silverlight.

Does anyone have any experience on this and whether it is possible?


Detecting if Silverlight is installed is different to detecting support for Silverlight.

It is indeed different. Opera is not "supported" but runs Silverlight just fine :)

Use Silverlight.isInstalled in Silverlight.js to check if Silverlight is installed (see: http://developer.yahoo.com/dotnet/silverlight/embedding.html). Is there any reason that isn't sufficient for you?

If you must create a database of which browsers are compatible with Silverlight, then I suggest leveraging crossbrowsertesting.com

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

上一篇: 为什么memcpy()的速度每4KB急剧下降?

下一篇: 是否支持Silverlight?