V
V
Valentine2015-05-16 13:47:51
Adobe Flash
Valentine, 2015-05-16 13:47:51

Flash browser support for banners on the site?

Good afternoon everyone!
To place banner ads on the site without using third-party services, what methods of determining the presence of flash support do you use?
SWFObject2 is quite an old library, is there anything new?
I couldn't find anything on the net. All links lead to SWFObject.
Either SWFObject is a panacea, or there is something new that I don't know about yet.
The main problem is the display of ads on iOS devices.
Maybe developers now stupidly define the system and don't bother with browsers?
modernizr?
What can anyone say about this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petrov, 2015-05-16
@Tpona

If we abstract from the present, which Dima Turkov rightly pointed out , and focus only on determining the presence of a Flash plugin, then the principle is very simple.
In theory, we have an entry in the plugins collection of the navigator object that can simply be found by MIME Media Type , namely application/x-shockwave-flash . In old donkeys (up to version 10) there is such a collection, but it is always empty - ActiveX rules there .

function getFlash () {
  if (navigator.plugins && navigator.plugins.length) {
    var object = navigator.mimeTypes['application/x-shockwave-flash'];

    if (object) {
      return object.enabledPlugin.description;
    }
  } else {
    try {
      var object = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');

      if (object) {
        return object.GetVariable('$version');
      }
    } catch (z) {}
  }
}

If we get a string, everything is in a bundle, and if desired, we parse it, learning the details. Well, no - and there is no trial.

D
Dima Pautov, 2015-05-16
@bootd

The main problem is the display of ads on iOS devices. There is no and will not be a flush !!!!

SVG is the future of banner ads, or Canvas!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question