nageeb2016 / swfobject

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

Express Install fails when embedded using wmode=direct #548

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install flash player 10.x.y (which supports 'direct' embed method)
2. Add params.wmode = "direct" to init routine
3. Require a flash player version higher

What is the expected output? What do you see instead?
Expected install dialog popup, instead: failure callback function is called.

What version of the product are you using? On what operating system?
10 r45, Windows 7 64 bit

Please provide any additional information below.
The easy solution is to override wmode=direct with transparent, opaque or 
window:
function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
    ...
    if (par.wmode == "direct") {
        par.wmode = "transparent";
    }
    createSWF(att, par, replaceElemIdStr);
}

Original issue reported on code.google.com by huy...@gmail.com on 8 Apr 2011 at 10:22

GoogleCodeExporter commented 9 years ago
SWFObject can initiate the ExpressInstall feature, but does not control the 
process, which varies from browser to browser. Adobe and the browser vendor 
control the ExpressInstall process/behavior, so I suggest filing a bug report 
with Adobe.

ExpressInstall has been buggy for years, and FP seems to have issues in Win7, 
too, so I'm not surprised to see this report. However, it's up to Adobe and the 
browser vendor(s) to sort it out. SWFObject's scope is limited to embedding the 
SWF in the HTML document. 

Also, SWFObject will never override a user's specifications (e.g. "transparent" 
overriding "direct"); it's up to the developer to make the correct choice for 
their situation and handle whatever issues may arise from that choice. It's 
outside the scope of SWFObject. 

The source code for SWFObject is available for download if you'd like to create 
a custom version.

Original comment by platelu...@gmail.com on 17 May 2011 at 11:12