ouyang789987 / swfobject

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

Flash detection broken on Android Webkit #496

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an SWFObject flash embed
2. Optionally use the flashvar.error callback (we use this to load html5)
3. View this page on an Android device (Specifically Galaxy S / AT&T Captivate)

What is the expected output? What do you see instead?
On iDevices (iPhone, iPad) webkit successfully loads the html5 version. On 
Android webkit it just displays an error "You are trying to install Adobe Flash 
Player on an unsupported Operating System..."

What version of the product are you using? On what operating system?
v2.2, Android (not Froyo but the one before). 

Please provide any additional information below.
In September most Androids will upgrade to Froyo which supports flash. In the 
meantime, HTML5 fallback looks broken.
Demo here: View on iPhone / iPad and view on Android: 
http://readystate4.com/ws/demo/flash.html

Original issue reported on code.google.com by switchst...@gmail.com on 21 Aug 2010 at 1:11

GoogleCodeExporter commented 9 years ago
It should be noted that if you don't use the .error callback it should just 
display the alternative content on the page. Right now it is attempting to 
display flash when flash is not installed on android devices.

Original comment by switchst...@gmail.com on 23 Aug 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Just an additional correction, flashvar.error was the wrong term I used. In 
your documentation its called callbackFn. This value is not reporting a falsey 
value for e.success on Android devices that don't currently support Flash.

Original comment by switchst...@gmail.com on 23 Aug 2010 at 8:37

Attachments:

GoogleCodeExporter commented 9 years ago
Using Android 2.1 (without Flash), SwfObject tries to pass it the Flash version 
of the page instead of falling back to the non-Flash version.  A quick fix for 
users of the phone is to disable plugins under the browser's advanced settings, 
but it would be nice if SwfObject properly detected support for Android 2.1 
phones.

Original comment by behn...@gmail.com on 21 Dec 2010 at 6:44

GoogleCodeExporter commented 9 years ago
This is caused by using an android device that previously had Flash installed. 
After uninstalling Flash from Android, reboot your device and the problem goes 
away.

Annoying, yes, but roughly equivalent to restarting Firefox after disabling a 
plugin.

Original comment by eveningsky@gmail.com on 9 Sep 2011 at 8:30

GoogleCodeExporter commented 9 years ago
Flash

Original comment by snowpf...@gmail.com on 12 Sep 2011 at 6:15

GoogleCodeExporter commented 9 years ago
The issue of the callback reporting success or failure has been addressed in 
the SWFObject 2.3 beta on GitHub.

Original comment by platelu...@gmail.com on 7 Oct 2011 at 8:41