VB.NET - How to check if Webbrowser supports flash?

Total Post:51

Points:359
VB.Net 
 2280  View(s)
Ratings:
Rate this:
Hi Developers, 

I have created one web application that used for plays flash videos. I have to check if they have flash for the Internet Explorer (the WebBrowser Element) installed. How can I check this? I saw this in another tool before, but I have no idea how it's working.

Thanks in advance. 
  1. Post:604

    Points:4228
    Re: VB.NET - How to check if Webbrowser supports flash?

    Hi Hugh,


    You can try as following using jQuery

    var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof     navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new    ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));

    I hope it helpful for you.

Answer