mancyril123 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Disable Flash on hand held devices #585

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a way to use swfobject to determine if a user is on a hand-held device?

I develop an alternate version of my sites for iPhone and iPad ... and I would 
prefer this version to display on the Droid as well.

Even though Droid does play the Flash version of the sites, it is cumbersome 
and hard for the user to use because of the small screen.

I want to test for cell phones, and just demonstrate the alternate content for 
all hand held devices, regardless of whether or not they support Flash.

Thank you,
Glendon

Original issue reported on code.google.com by legacy...@gmail.com on 9 Aug 2011 at 2:03

GoogleCodeExporter commented 9 years ago
This is not a bug or a feature request and therefore should be posted on the 
SWFObject Google Group (a support forum) rather than this bug tracking system.  
http://groups.google.com/group/swfobject

As for your question, a quick solution is to check the useragent via JavaScript 
or server-side script. David Walsh has a nice writeup here: 
http://davidwalsh.name/detect-android

Original comment by platelu...@gmail.com on 9 Aug 2011 at 6:12