Hi all – I have a dumb question – I’m not the worlds best scripter…
I’ve got a ColdFusion page, with an element in it that is either flash, or HTML5.
I need a way to detect what is happening client-side and push the client to either the Flash element, or the HTML element (or a s “you’re WAY behind the times” element if neither).
I’ve found, and used, modernizr, but it does things the wrong way round for me. I need to direct my clients to flash 1st, then HTML5, then the sorry page. Modernizr only gives me HTML 5 first then Flash, and this isn’t working for me. the flash element is the preferred element. I’ve screwed around with trying to “swap out” modernizr, but my glasses aren’t thick enough.
Thus, I (roughly) need something that does this:
Direct them to flash page
Direct them to HTML 5 page
So, how is life in the 18th century?
I read there was a flash player detection script. I found a link on here
However, when I go to the link, it does not work.
I did a search on adobe dev and can't find anything, it just runs me around in circles
Flash detection is all client side. Just do a google search for flash detection.. there are tons of resources. Just make sure you use somethign that is recent. The post you mention from above from Ray is 8 years old and probably not relevent anymore.
I am going to try looking at the user agent info to see if there are some indicators in there that might tell me it's in there or not. Although it would concern me that an install and uninstall might not change the header back
I was hoping that there might have been something written into the user agent, but it looks like there isn't
I just took a look here http://useragent.cc/
Shame that the install does not tweak up the user agent description so it could then be found server side
Looks like a lost cause
If I read this correctly, there may be a solution
In my case I'm not playing a video, I have a peel ad that runs in the corner of the page, currently in flash, but I just got a Jquery version running that does not need flash, however it does not look quite as good so I want to display the flash whenever I can, however it looks like that is going to be a problem so I think I'll just go with the Jquery on all hits